home *** CD-ROM | disk | FTP | other *** search
Unknown | 2000-08-22 | 20.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '.DLL ; V3.0 By David Newton (dave'
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2e 44 4c 4c 20 3b 20 56 | 33 2e 30 20 42 79 20 44 |.DLL ; V|3.0 By D|
|00000010| 61 76 69 64 20 4e 65 77 | 74 6f 6e 20 28 64 61 76 |avid New|ton (dav|
|00000020| 65 40 6e 62 73 61 6d 69 | 67 61 2e 64 65 6d 6f 6e |e@nbsami|ga.demon|
|00000030| 2e 63 6f 2e 75 6b 29 00 | 3b 20 20 20 20 20 20 20 |.co.uk).|; |
|00000040| 20 20 20 20 4d 6f 64 69 | 66 69 65 64 20 62 79 20 | Modi|fied by |
|00000050| 54 6f 6e 79 20 52 6f 6c | 66 65 20 28 65 64 67 65 |Tony Rol|fe (edge|
|00000060| 77 61 74 65 72 40 73 68 | 6f 61 6c 68 61 76 65 6e |water@sh|oalhaven|
|00000070| 2e 6e 65 74 2e 61 75 29 | 00 3b 00 3b 44 79 6e 61 |.net.au)|.;.;Dyna|
|00000080| 6d 69 63 20 4c 69 6e 6b | 65 64 20 4c 69 73 74 73 |mic Link|ed Lists|
|00000090| 20 28 77 69 74 68 20 76 | 61 72 69 61 62 6c 65 20 | (with v|ariable |
|000000a0| 73 69 7a 65 64 20 69 74 | 65 6d 73 29 00 3b 00 3b |sized it|ems).;.;|
|000000b0| 53 65 65 20 44 4c 4c 2e | 72 65 61 64 6d 65 20 66 |See DLL.|readme f|
|000000c0| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|000000d0| 69 6f 6e 21 00 3b 00 3b | 46 65 65 6c 20 66 72 65 |ion!.;.;|Feel fre|
|000000e0| 65 20 74 6f 20 75 73 65 | 20 74 68 69 73 20 69 6e |e to use| this in|
|000000f0| 63 6c 75 64 65 20 69 6e | 20 61 6e 79 20 6f 66 20 |clude in| any of |
|00000100| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 73 20 61 6e |your pro|grams an|
|00000110| 79 77 61 79 20 79 6f 75 | 20 72 65 71 75 69 72 65 |yway you| require|
|00000120| 2e 00 3b 41 6c 73 6f 20 | 6d 61 6b 65 20 61 6e 79 |..;Also |make any|
|00000130| 20 63 68 61 6e 67 65 73 | 20 79 6f 75 20 6c 69 6b | changes| you lik|
|00000140| 65 2c 20 61 6e 64 20 69 | 66 20 79 6f 75 20 69 6d |e, and i|f you im|
|00000150| 70 72 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 28 |prove an|ything (|
|00000160| 6d 6f 73 74 6c 79 20 74 | 68 65 00 3b 73 6f 72 74 |mostly t|he.;sort|
|00000170| 20 72 6f 75 74 69 6e 65 | 73 2e 2e 2e 29 20 6c 65 | routine|s...) le|
|00000180| 74 20 6d 65 20 6b 6e 6f | 77 2c 20 73 6f 20 6f 74 |t me kno|w, so ot|
|00000190| 68 65 72 20 70 65 6f 70 | 6c 65 20 63 61 6e 20 62 |her peop|le can b|
|000001a0| 65 6e 65 66 69 74 2e 20 | 49 20 72 65 71 75 69 72 |enefit. |I requir|
|000001b0| 65 20 6e 6f 00 3b 72 65 | 6e 75 6d 65 72 61 74 69 |e no.;re|numerati|
|000001c0| 6f 6e 20 66 6f 72 20 74 | 68 65 20 75 73 65 20 6f |on for t|he use o|
|000001d0| 66 20 74 68 69 73 20 73 | 6f 75 72 63 65 20 63 6f |f this s|ource co|
|000001e0| 64 65 2c 20 61 6e 64 20 | 49 20 61 63 63 65 70 74 |de, and |I accept|
|000001f0| 20 6e 6f 00 3b 72 65 73 | 70 6f 6e 73 69 62 69 6c | no.;res|ponsibil|
|00000200| 69 74 79 20 66 6f 72 20 | 61 6e 79 20 68 61 72 6d |ity for |any harm|
|00000210| 20 74 6f 20 68 61 72 64 | 77 61 72 65 2f 73 6f 66 | to hard|ware/sof|
|00000220| 74 77 61 72 65 20 63 61 | 75 73 65 64 20 64 69 72 |tware ca|used dir|
|00000230| 65 63 74 6c 79 20 6f 72 | 00 3b 69 6e 64 69 72 65 |ectly or|.;indire|
|00000240| 63 74 6c 79 20 66 72 6f | 6d 20 74 68 65 20 75 73 |ctly fro|m the us|
|00000250| 65 20 6f 66 20 74 68 69 | 73 20 73 6f 75 72 63 65 |e of thi|s source|
|00000260| 20 63 6f 64 65 20 61 6e | 64 2f 6f 72 20 65 78 74 | code an|d/or ext|
|00000270| 72 61 63 74 73 20 6f 66 | 20 74 68 69 73 20 73 6f |racts of| this so|
|00000280| 75 72 63 65 00 3b 63 6f | 64 65 20 63 6f 6d 70 69 |urce.;co|de compi|
|00000290| 6c 65 64 2e 20 42 75 74 | 20 61 20 63 72 65 64 69 |led. But| a credi|
|000002a0| 74 20 66 6f 72 20 74 68 | 65 73 65 20 72 6f 75 74 |t for th|ese rout|
|000002b0| 69 6e 65 73 20 69 6e 20 | 79 6f 75 72 20 73 6f 66 |ines in |your sof|
|000002c0| 74 77 61 72 65 2f 6d 61 | 6e 75 61 6c 20 77 6f 75 |tware/ma|nual wou|
|000002d0| 6c 64 00 3b 62 65 20 6e | 69 63 65 20 3a 29 2e 20 |ld.;be n|ice :). |
|000002e0| 20 44 61 76 65 2e 2e 2e | 2e 2e 00 3b 00 3b 20 53 | Dave...|...;.; S|
|000002f0| 65 74 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |et the f|ollowing|
|00000300| 20 66 6c 61 67 20 74 6f | 20 7a 65 72 6f 20 74 6f | flag to| zero to|
|00000310| 20 6d 61 69 6e 74 61 69 | 6e 20 74 68 65 20 6f 72 | maintai|n the or|
|00000320| 69 67 69 6e 61 6c 00 3b | 20 6d 65 74 68 6f 64 20 |iginal.;| method |
|00000330| 77 69 74 68 20 65 61 63 | 68 20 66 75 6e 63 74 69 |with eac|h functi|
|00000340| 6f 6e 20 72 65 74 75 72 | 6e 69 6e 67 20 61 20 74 |on retur|ning a t|
|00000350| 72 75 65 2f 66 61 6c 73 | 65 20 63 6f 6e 64 69 74 |rue/fals|e condit|
|00000360| 69 6f 6e 00 3b 20 4f 72 | 2e 2e 2e 20 73 65 74 20 |ion.; Or|... set |
|00000370| 74 6f 20 31 20 74 6f 20 | 68 61 76 65 20 65 61 63 |to 1 to |have eac|
|00000380| 68 20 72 6f 75 74 69 6e | 65 20 74 72 61 70 20 69 |h routin|e trap i|
|00000390| 74 73 20 6f 77 6e 20 66 | 61 74 61 6c 20 65 72 72 |ts own f|atal err|
|000003a0| 6f 72 73 20 61 6e 64 00 | 3b 20 69 6e 76 6f 6b 65 |ors and.|; invoke|
|000003b0| 20 74 68 65 20 46 61 74 | 61 6c 5f 45 72 72 6f 72 | the Fat|al_Error|
|000003c0| 7b 4d 65 73 73 61 67 65 | 24 7d 20 73 74 61 74 65 |{Message|$} state|
|000003d0| 6d 65 6e 74 20 28 74 6f | 20 62 65 20 73 75 70 70 |ment (to| be supp|
|000003e0| 6c 69 65 64 20 62 79 20 | 74 68 65 20 75 73 65 72 |lied by |the user|
|000003f0| 29 2e 00 3b 00 23 44 4c | 4c 5f 54 52 41 50 5f 45 |)..;.#DL|L_TRAP_E|
|00000400| 52 52 4f 52 53 20 3d 20 | 31 20 3b 00 3b 00 80 05 |RRORS = |1 ;.;...|
|00000410| 20 45 4e 44 5f 4f 46 5f | 44 4c 4c 00 00 3b 44 4c | END_OF_|DLL..;DL|
|00000420| 4c 20 43 4f 4e 53 54 41 | 4e 54 53 00 23 53 54 52 |L CONSTA|NTS.#STR|
|00000430| 49 4e 47 5f 48 4f 4c 44 | 45 52 3d 24 46 46 20 20 |ING_HOLD|ER=$FF |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 3b 75 73 65 64 20 | | ;used |
|00000450| 61 73 20 61 20 73 74 72 | 69 6e 67 20 74 79 70 65 |as a str|ing type|
|00000460| 20 68 6f 6c 64 65 72 20 | 69 6e 20 74 68 65 20 6c | holder |in the l|
|00000470| 69 73 74 20 68 65 61 64 | 20 64 61 74 61 00 23 44 |ist head| data.#D|
|00000480| 45 46 41 55 4c 54 5f 49 | 54 45 4d 5f 53 54 41 43 |EFAULT_I|TEM_STAC|
|00000490| 4b 5f 53 49 5a 45 3d 38 | 20 20 20 20 3b 64 65 66 |K_SIZE=8| ;def|
|000004a0| 61 75 6c 74 20 6d 61 78 | 69 6d 75 6d 20 6e 75 6d |ault max|imum num|
|000004b0| 62 65 72 20 6f 66 20 70 | 75 73 68 65 73 20 66 6f |ber of p|ushes fo|
|000004c0| 72 20 61 20 6c 69 73 74 | 20 28 69 65 2c 20 6c 69 |r a list| (ie, li|
|000004d0| 73 74 20 73 74 61 63 6b | 20 73 69 7a 65 29 00 00 |st stack| size)..|
|000004e0| 23 44 4c 4c 5f 54 72 75 | 65 20 20 3d 20 2d 31 20 |#DLL_Tru|e = -1 |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 | | ; |
|00000500| 46 61 73 74 65 72 20 72 | 65 70 6c 61 63 65 6e 65 |Faster r|eplacene|
|00000510| 6d 74 20 66 6f 72 20 54 | 72 75 65 00 23 44 4c 4c |mt for T|rue.#DLL|
|00000520| 5f 46 61 6c 73 65 20 3d | 20 30 20 20 20 20 20 20 |_False =| 0 |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 3b 20 2e 2e 2e 20 | | ; ... |
|00000540| 61 6e 64 20 66 6f 72 20 | 46 61 6c 73 65 00 00 23 |and for |False..#|
|00000550| 56 41 52 54 59 50 45 5f | 42 59 54 45 3d 31 20 20 |VARTYPE_|BYTE=1 |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 75 73 | | ;us|
|00000570| 65 64 20 62 79 20 74 68 | 65 20 73 6f 72 74 20 72 |ed by th|e sort r|
|00000580| 6f 75 74 69 6e 65 20 74 | 6f 20 64 65 74 65 72 6d |outine t|o determ|
|00000590| 69 6e 65 20 76 61 72 69 | 61 62 6c 65 20 74 79 70 |ine vari|able typ|
|000005a0| 65 00 23 56 41 52 54 59 | 50 45 5f 57 4f 52 44 3d |e.#VARTY|PE_WORD=|
|000005b0| 32 00 23 56 41 52 54 59 | 50 45 5f 4c 4f 4e 47 3d |2.#VARTY|PE_LONG=|
|000005c0| 33 00 23 56 41 52 54 59 | 50 45 5f 51 55 49 43 4b |3.#VARTY|PE_QUICK|
|000005d0| 3d 34 00 23 56 41 52 54 | 59 50 45 5f 46 4c 4f 41 |=4.#VART|YPE_FLOA|
|000005e0| 54 3d 35 00 00 00 3b 44 | 4c 4c 20 4e 45 57 54 59 |T=5...;D|LL NEWTY|
|000005f0| 50 45 53 00 3b 4c 69 73 | 74 20 6e 6f 64 65 2c 20 |PES.;Lis|t node, |
|00000600| 74 68 65 20 62 61 73 69 | 63 20 6c 69 73 74 20 6e |the basi|c list n|
|00000610| 65 77 74 79 70 65 20 74 | 6f 20 61 64 64 20 69 6e |ewtype t|o add in|
|00000620| 20 79 6f 75 72 20 6e 65 | 77 20 74 79 70 65 00 80 | your ne|w type..|
|00000630| 01 20 2e 64 6c 6c 00 20 | 20 2a 64 6c 6c 5f 6e 65 |. .dll. | *dll_ne|
|00000640| 78 74 2e 64 6c 6c 00 20 | 20 2a 64 6c 6c 5f 70 72 |xt.dll. | *dll_pr|
|00000650| 65 76 2e 64 6c 6c 00 80 | 02 20 80 01 00 00 80 01 |ev.dll..|. ......|
|00000660| 20 2e 64 6c 6c 68 65 61 | 64 20 20 20 20 20 20 20 | .dllhea|d |
|00000670| 20 3b 70 72 69 76 61 74 | 65 20 75 73 65 2c 20 66 | ;privat|e use, f|
|00000680| 6f 72 20 61 63 63 65 73 | 73 69 6e 67 20 74 68 65 |or acces|sing the|
|00000690| 20 68 65 61 64 20 69 74 | 65 6d 00 20 20 20 20 20 | head it|em. |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 20 20 20 3b 2d 34 20 66 | 72 6f 6d 20 68 65 72 65 | ;-4 f|rom here|
|000006c0| 20 69 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | is the |current |
|000006d0| 69 74 65 6d 20 70 6f 69 | 6e 74 65 72 00 20 20 2a |item poi|nter. *|
|000006e0| 64 6c 6c 5f 6e 65 78 74 | 2e 64 6c 6c 20 20 20 20 |dll_next|.dll |
|000006f0| 20 20 20 20 20 3b 70 6f | 69 6e 74 73 20 74 6f 20 | ;po|ints to |
|00000700| 74 68 65 20 66 69 72 73 | 74 20 69 74 65 6d 20 69 |the firs|t item i|
|00000710| 6e 20 6c 69 73 74 00 20 | 20 2a 64 6c 6c 5f 74 61 |n list. | *dll_ta|
|00000720| 69 6c 2e 64 6c 6c 20 20 | 20 20 20 20 20 20 20 3b |il.dll | ;|
|00000730| 61 6c 77 61 79 73 20 30 | 00 20 20 2a 64 6c 6c 5f |always 0|. *dll_|
|00000740| 74 61 69 6c 70 72 65 76 | 2e 64 6c 6c 20 20 20 20 |tailprev|.dll |
|00000750| 20 3b 70 6f 69 6e 74 73 | 20 74 6f 20 6c 61 73 74 | ;points| to last|
|00000760| 20 69 74 65 6d 20 69 6e | 20 6c 69 73 74 00 20 20 | item in| list. |
|00000770| 2a 64 6c 6c 5f 66 72 65 | 65 6e 65 78 74 2e 64 6c |*dll_fre|enext.dl|
|00000780| 6c 20 20 20 20 20 3b 61 | 6c 77 61 79 73 20 70 6f |l ;a|lways po|
|00000790| 69 6e 74 73 20 74 6f 20 | 64 6c 6c 5f 66 72 65 65 |ints to |dll_free|
|000007a0| 74 61 69 6c 20 2d 6c 65 | 61 76 65 20 62 6c 69 74 |tail -le|ave blit|
|000007b0| 7a 20 72 75 62 62 69 73 | 68 00 20 20 2a 64 6c 6c |z rubbis|h. *dll|
|000007c0| 5f 66 72 65 65 74 61 69 | 6c 2e 64 6c 6c 20 20 20 |_freetai|l.dll |
|000007d0| 20 20 3b 61 6c 77 61 79 | 73 20 30 00 20 20 2a 64 | ;alway|s 0. *d|
|000007e0| 6c 6c 5f 66 72 65 65 74 | 61 69 6c 70 72 65 76 2e |ll_freet|ailprev.|
|000007f0| 64 6c 6c 20 3b 61 6c 77 | 61 79 73 20 70 6f 69 6e |dll ;alw|ays poin|
|00000800| 74 73 20 74 6f 20 64 6c | 6c 5f 66 72 65 65 6e 65 |ts to dl|l_freene|
|00000810| 78 74 20 2d 6c 65 61 76 | 65 20 62 6c 69 74 7a 20 |xt -leav|e blitz |
|00000820| 72 75 62 62 69 73 68 00 | 20 20 64 6c 6c 5f 62 6c |rubbish.| dll_bl|
|00000830| 69 74 7a 6c 69 73 74 2e | 6c 20 20 20 20 20 20 20 |itzlist.|l |
|00000840| 3b 6c 49 73 54 20 64 65 | 66 69 6e 65 73 20 74 68 |;lIsT de|fines th|
|00000850| 69 73 20 69 73 20 61 20 | 62 6c 69 74 7a 20 6c 69 |is is a |blitz li|
|00000860| 73 74 2e 2e 2e 44 4f 48 | 00 00 20 20 20 20 20 20 |st...DOH|.. |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 3b 6d 79 20 61 64 | 64 6f 6e 73 20 66 72 6f | ;my ad|dons fro|
|00000890| 6d 20 68 65 72 65 00 20 | 20 2a 64 6c 6c 5f 63 75 |m here. | *dll_cu|
|000008a0| 72 72 65 6e 74 2e 64 6c | 6c 20 20 20 20 20 20 3b |rrent.dl|l ;|
|000008b0| 61 64 64 72 65 73 73 20 | 6f 66 20 74 68 65 20 63 |address |of the c|
|000008c0| 75 72 72 65 6e 74 20 69 | 74 65 6d 20 76 61 72 69 |urrent i|tem vari|
|000008d0| 61 62 6c 65 20 70 6f 69 | 6e 74 65 72 20 28 75 73 |able poi|nter (us|
|000008e0| 65 20 64 6c 6c 5f 63 75 | 72 72 65 6e 74 5c 64 6c |e dll_cu|rrent\dl|
|000008f0| 6c 5f 6e 65 78 74 20 61 | 73 20 74 68 65 20 70 6f |l_next a|s the po|
|00000900| 69 6e 74 65 72 20 74 6f | 20 63 75 72 72 65 6e 74 |inter to| current|
|00000910| 20 69 74 65 6d 29 00 20 | 20 64 6c 6c 5f 69 74 65 | item). | dll_ite|
|00000920| 6d 73 69 6e 6c 69 73 74 | 2e 6c 20 20 20 20 20 3b |msinlist|.l ;|
|00000930| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|00000940| 69 6e 20 6c 69 73 74 00 | 20 20 64 6c 6c 5f 63 75 |in list.| dll_cu|
|00000950| 72 70 6f 73 2e 6c 20 20 | 20 20 20 20 20 20 20 20 |rpos.l | |
|00000960| 3b 63 75 72 72 65 6e 74 | 20 69 74 65 6d 20 6e 75 |;current| item nu|
|00000970| 6d 62 65 72 20 28 66 69 | 72 73 74 20 3d 20 31 29 |mber (fi|rst = 1)|
|00000980| 20 3b 3b 20 41 64 64 65 | 64 20 62 79 20 41 43 52 | ;; Adde|d by ACR|
|00000990| 00 20 20 64 6c 6c 5f 73 | 74 61 63 6b 73 74 61 72 |. dll_s|tackstar|
|000009a0| 74 2e 6c 20 20 20 20 20 | 20 3b 73 74 61 72 74 20 |t.l | ;start |
|000009b0| 6f 66 20 69 74 65 6d 20 | 73 74 61 63 6b 20 66 6f |of item |stack fo|
|000009c0| 72 20 74 68 69 73 20 6c | 69 73 74 00 20 20 64 6c |r this l|ist. dl|
|000009d0| 6c 5f 73 74 61 63 6b 63 | 75 72 72 65 6e 74 2e 6c |l_stackc|urrent.l|
|000009e0| 20 20 20 20 3b 63 75 72 | 72 65 6e 74 20 70 6f 73 | ;cur|rent pos|
|000009f0| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6c 69 73 |ition of| the lis|
|00000a00| 74 20 73 74 61 63 6b 00 | 20 20 64 6c 6c 5f 73 74 |t stack.| dll_st|
|00000a10| 61 63 6b 65 6e 64 2e 6c | 20 20 20 20 20 20 20 20 |ackend.l| |
|00000a20| 3b 65 6e 64 20 6f 66 20 | 69 74 65 6d 20 73 74 61 |;end of |item sta|
|00000a30| 63 6b 20 66 6f 72 20 74 | 68 69 73 20 6c 69 73 74 |ck for t|his list|
|00000a40| 00 20 20 64 6c 6c 5f 66 | 69 72 73 74 73 74 72 69 |. dll_f|irststri|
|00000a50| 6e 67 2e 6c 20 20 20 20 | 20 3b 6f 66 66 73 65 74 |ng.l | ;offset|
|00000a60| 20 69 6e 20 69 74 65 6d | 20 6f 66 20 66 69 72 73 | in item| of firs|
|00000a70| 74 20 73 74 72 69 6e 67 | 20 28 6f 72 20 30 2d 6e |t string| (or 0-n|
|00000a80| 6f 20 73 74 72 69 6e 67 | 73 29 00 20 20 20 20 20 |o string|s). |
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000aa0| 20 20 20 3b 6c 69 73 74 | 20 6f 66 20 73 74 72 69 | ;list| of stri|
|00000ab0| 6e 67 20 6f 66 66 73 65 | 74 73 2e 6c 20 75 6e 74 |ng offse|ts.l unt|
|00000ac0| 69 6c 20 30 20 69 73 20 | 72 65 61 63 68 65 64 00 |il 0 is |reached.|
|00000ad0| 80 02 20 80 01 00 00 00 | 3b 44 4c 4c 20 49 4e 54 |.. .....|;DLL INT|
|00000ae0| 45 52 4e 41 4c 20 52 4f | 55 54 49 4e 45 53 20 2d |ERNAL RO|UTINES -|
|00000af0| 20 4c 45 41 56 45 20 41 | 4c 4f 4e 45 21 00 80 08 | LEAVE A|LONE!...|
|00000b00| 20 44 4c 4c 5f 4c 4f 4b | 45 7b 61 64 64 72 65 73 | DLL_LOK|E{addres|
|00000b10| 73 2e 6c 2c 6e 75 6d 62 | 65 72 2e 6c 7d 00 20 20 |s.l,numb|er.l}. |
|00000b20| 3b 6d 79 20 71 75 69 63 | 6b 20 72 65 70 6c 61 63 |;my quic|k replac|
|00000b30| 65 6d 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 20 66 |ement fu|nction f|
|00000b40| 6f 72 20 70 6f 6b 65 2e | 6c 00 00 20 20 20 80 7e |or poke.|l.. .~|
|00000b50| 2e 6c 20 64 30 2c 61 30 | 00 20 20 20 80 7e 2e 6c |.l d0,a0|. .~.l|
|00000b60| 20 64 31 2c 28 61 30 29 | 00 20 20 20 80 11 00 80 | d1,(a0)|. ....|
|00000b70| 02 20 80 08 00 00 80 09 | 2e 6c 20 44 4c 4c 5f 4c |. ......|.l DLL_L|
|00000b80| 45 45 4b 7b 61 64 64 72 | 65 73 73 2e 6c 7d 00 20 |EEK{addr|ess.l}. |
|00000b90| 20 3b 6d 79 20 71 75 69 | 63 6b 20 72 65 70 6c 61 | ;my qui|ck repla|
|00000ba0| 63 65 6d 65 6e 74 20 66 | 75 6e 63 74 69 6f 6e 20 |cement f|unction |
|00000bb0| 66 6f 72 20 70 65 65 6b | 2e 6c 00 00 20 20 80 7e |for peek|.l.. .~|
|00000bc0| 2e 6c 20 64 30 2c 61 30 | 3a 80 7e 2e 6c 20 28 61 |.l d0,a0|:.~.l (a|
|00000bd0| 30 29 2c 64 30 00 20 20 | 80 11 00 80 02 20 80 09 |0),d0. |..... ..|
|00000be0| 00 00 80 09 2e 62 20 44 | 4c 4c 5f 42 45 45 4b 7b |.....b D|LL_BEEK{|
|00000bf0| 61 64 64 72 65 73 73 2e | 6c 7d 00 20 20 3b 71 75 |address.|l}. ;qu|
|00000c00| 69 63 6b 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ick repl|acement |
|00000c10| 66 6f 72 20 70 65 65 6b | 2e 62 00 00 20 20 80 7e |for peek|.b.. .~|
|00000c20| 2e 6c 20 64 30 2c 61 30 | 3a 80 7e 2e 62 20 28 61 |.l d0,a0|:.~.b (a|
|00000c30| 30 29 2c 64 30 00 20 20 | 80 11 00 80 02 20 80 09 |0),d0. |..... ..|
|00000c40| 00 00 80 09 2e 77 20 44 | 4c 4c 5f 57 45 45 4b 7b |.....w D|LL_WEEK{|
|00000c50| 61 64 64 72 65 73 73 2e | 6c 7d 00 20 20 3b 71 75 |address.|l}. ;qu|
|00000c60| 69 63 6b 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ick repl|acement |
|00000c70| 66 6f 72 20 70 65 65 6b | 2e 77 00 00 20 20 80 7e |for peek|.w.. .~|
|00000c80| 2e 6c 20 64 30 2c 61 30 | 3a 80 7e 2e 77 20 28 61 |.l d0,a0|:.~.w (a|
|00000c90| 30 29 2c 64 30 00 20 20 | 80 11 00 80 02 20 80 09 |0),d0. |..... ..|
|00000ca0| 00 00 80 09 2e 71 20 44 | 4c 4c 5f 51 45 45 4b 7b |.....q D|LL_QEEK{|
|00000cb0| 61 64 64 72 65 73 73 2e | 6c 7d 00 20 20 3b 71 75 |address.|l}. ;qu|
|00000cc0| 69 63 6b 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ick repl|acement |
|00000cd0| 66 6f 72 20 70 65 65 6b | 2e 71 00 00 20 20 80 7e |for peek|.q.. .~|
|00000ce0| 2e 6c 20 64 30 2c 61 30 | 3a 80 7e 2e 6c 20 28 61 |.l d0,a0|:.~.l (a|
|00000cf0| 30 29 2c 64 30 00 20 20 | 80 11 00 80 02 20 80 09 |0),d0. |..... ..|
|00000d00| 00 00 80 09 2e 66 20 44 | 4c 4c 5f 46 45 45 4b 7b |.....f D|LL_FEEK{|
|00000d10| 61 64 64 72 65 73 73 2e | 6c 7d 00 20 20 3b 71 75 |address.|l}. ;qu|
|00000d20| 69 63 6b 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ick repl|acement |
|00000d30| 66 6f 72 20 70 65 65 6b | 2e 66 00 00 20 20 80 7e |for peek|.f.. .~|
|00000d40| 2e 6c 20 64 30 2c 61 30 | 3a 80 7e 2e 6c 20 28 61 |.l d0,a0|:.~.l (a|
|00000d50| 30 29 2c 64 30 00 20 20 | 80 11 00 80 02 20 80 09 |0),d0. |..... ..|
|00000d60| 00 00 80 09 2e 62 20 46 | 4c 4f 41 54 5f 53 47 4e |.....b F|LOAT_SGN|
|00000d70| 7b 66 6c 6f 61 74 61 64 | 72 2e 6c 7d 00 20 20 3b |{floatad|r.l}. ;|
|00000d80| 72 65 70 6c 61 63 65 6d | 65 6e 74 20 66 6f 72 20 |replacem|ent for |
|00000d90| 73 67 6e 28 66 6c 6f 61 | 74 29 20 61 73 73 75 6d |sgn(floa|t) assum|
|00000da0| 69 6e 67 20 73 74 61 6e | 64 61 72 64 20 46 46 50 |ing stan|dard FFP|
|00000db0| 20 6c 6f 6e 67 00 00 20 | 20 80 7e 2e 6c 20 64 30 | long.. | .~.l d0|
|00000dc0| 2c 61 30 3a 80 7e 2e 6c | 20 28 61 30 29 2c 64 30 |,a0:.~.l| (a0),d0|
|00000dd0| 3a 80 48 20 46 4c 4f 41 | 54 5f 53 47 4e 5f 45 58 |:.H FLOA|T_SGN_EX|
|00000de0| 49 54 00 20 20 80 57 2e | 62 20 23 37 2c 64 30 3a |IT. .W.|b #7,d0:|
|00000df0| 80 50 20 46 4c 4f 41 54 | 5f 53 47 4e 5f 4d 49 4e |.P FLOAT|_SGN_MIN|
|00000e00| 55 53 3a 80 81 2e 6c 20 | 23 31 2c 64 30 3a 80 58 |US:...l |#1,d0:.X|
|00000e10| 20 46 4c 4f 41 54 5f 53 | 47 4e 5f 45 58 49 54 00 | FLOAT_S|GN_EXIT.|
|00000e20| 46 4c 4f 41 54 5f 53 47 | 4e 5f 4d 49 4e 55 53 3a |FLOAT_SG|N_MINUS:|
|00000e30| 20 80 81 2e 6c 20 23 2d | 31 2c 64 30 00 46 4c 4f | ...l #-|1,d0.FLO|
|00000e40| 41 54 5f 53 47 4e 5f 45 | 58 49 54 3a 00 20 20 80 |AT_SGN_E|XIT:. .|
|00000e50| 11 00 80 02 20 80 09 00 | 00 80 09 2e 6c 20 47 45 |.... ...|....l GE|
|00000e60| 54 5f 41 4c 4c 4f 43 41 | 54 45 44 5f 53 49 5a 45 |T_ALLOCA|TED_SIZE|
|00000e70| 7b 61 64 64 72 65 73 73 | 2e 6c 7d 00 20 20 3b 72 |{address|.l}. ;r|
|00000e80| 65 74 75 72 6e 73 20 74 | 68 65 20 73 69 7a 65 20 |eturns t|he size |
|00000e90| 6f 66 20 61 20 62 6c 69 | 74 7a 20 61 6c 6c 6f 63 |of a bli|tz alloc|
|00000ea0| 61 74 65 64 20 6d 65 6d | 6f 72 79 20 62 75 66 66 |ated mem|ory buff|
|00000eb0| 65 72 00 00 20 20 80 7e | 2e 6c 20 64 30 2c 61 30 |er.. .~|.l d0,a0|
|00000ec0| 3a 80 7e 2e 6c 20 2d 34 | 28 61 30 29 2c 64 30 3a |:.~.l -4|(a0),d0:|
|00000ed0| 80 a7 2e 6c 20 23 38 2c | 64 30 00 20 20 80 11 00 |...l #8,|d0. ...|
|00000ee0| 80 02 20 80 09 00 00 80 | 08 20 53 45 54 5f 43 55 |.. .....|. SET_CU|
|00000ef0| 52 52 45 4e 54 5f 49 54 | 45 4d 7b 2a 6c 69 73 74 |RRENT_IT|EM{*list|
|00000f00| 68 65 61 64 2e 64 6c 6c | 68 65 61 64 2c 2a 63 75 |head.dll|head,*cu|
|00000f10| 72 69 74 65 6d 2e 64 6c | 6c 7d 00 20 20 3b 73 65 |ritem.dl|l}. ;se|
|00000f20| 74 73 20 74 68 65 20 74 | 77 6f 20 63 75 72 72 65 |ts the t|wo curre|
|00000f30| 6e 74 20 69 74 65 6d 20 | 70 6f 69 6e 74 65 72 73 |nt item |pointers|
|00000f40| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 20 68 65 61 | in the |list hea|
|00000f50| 64 20 74 6f 20 2a 63 75 | 72 69 74 65 6d 00 00 20 |d to *cu|ritem.. |
|00000f60| 20 44 4c 4c 5f 4c 4f 4b | 45 7b 2a 6c 69 73 74 68 | DLL_LOK|E{*listh|
|00000f70| 65 61 64 2d 34 2c 2a 63 | 75 72 69 74 65 6d 7d 3a |ead-4,*c|uritem}:|
|00000f80| 2a 6c 69 73 74 68 65 61 | 64 5c 64 6c 6c 5f 63 75 |*listhea|d\dll_cu|
|00000f90| 72 72 65 6e 74 5c 64 6c | 6c 5f 6e 65 78 74 3d 2a |rrent\dl|l_next=*|
|00000fa0| 63 75 72 69 74 65 6d 00 | 80 02 20 80 08 00 00 80 |curitem.|.. .....|
|00000fb0| 08 20 53 45 45 4b 5f 53 | 54 52 49 4e 47 53 7b 73 |. SEEK_S|TRINGS{s|
|00000fc0| 73 74 61 72 74 2e 6c 2c | 64 61 74 61 70 6f 73 2e |start.l,|datapos.|
|00000fd0| 6c 2c 73 69 7a 65 2e 6c | 2c 73 74 72 70 6f 73 2e |l,size.l|,strpos.|
|00000fe0| 6c 7d 00 20 20 3b 53 74 | 61 72 74 20 61 74 20 74 |l}. ;St|art at t|
|00000ff0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 69 74 |he end o|f the it|
|00001000| 65 6d 27 73 20 64 61 74 | 61 20 62 6c 6f 63 6b 20 |em's dat|a block |
|00001010| 61 6e 64 20 73 65 61 72 | 63 68 20 66 6f 72 20 3c |and sear|ch for <|
|00001020| 3e 24 46 46 00 20 20 3b | 74 68 65 6e 20 72 65 63 |>$FF. ;|then rec|
|00001030| 6f 72 64 20 74 68 65 20 | 73 74 72 69 6e 67 73 20 |ord the |strings |
|00001040| 70 6f 73 69 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |position| in the |
|00001050| 6c 69 73 74 20 68 65 61 | 64 27 73 20 73 74 72 69 |list hea|d's stri|
|00001060| 6e 67 20 6c 69 73 74 20 | 62 6c 6f 63 6b 00 20 20 |ng list |block. |
|00001070| 3b 73 74 61 72 74 20 69 | 73 20 74 68 65 20 73 74 |;start i|s the st|
|00001080| 61 72 74 20 6f 66 20 74 | 68 65 20 69 74 65 6d 2c |art of t|he item,|
|00001090| 20 64 61 74 61 70 6f 73 | 20 69 73 20 74 68 65 20 | datapos| is the |
|000010a0| 6f 66 66 73 65 74 20 74 | 6f 20 74 68 65 20 73 74 |offset t|o the st|
|000010b0| 61 72 74 20 6f 66 20 74 | 68 65 20 64 61 74 61 20 |art of t|he data |
|000010c0| 62 6c 6f 63 6b 00 20 20 | 3b 73 69 7a 65 20 69 73 |block. |;size is|
|000010d0| 20 74 68 65 20 73 69 7a | 65 20 6f 66 20 74 68 65 | the siz|e of the|
|000010e0| 20 69 74 65 6d 2c 20 61 | 6e 64 20 73 74 72 70 6f | item, a|nd strpo|
|000010f0| 73 20 69 73 20 74 68 65 | 20 73 74 61 72 74 20 6f |s is the| start o|
|00001100| 66 20 74 68 65 20 73 74 | 72 69 6e 67 20 6c 69 73 |f the st|ring lis|
|00001110| 74 20 62 6c 6f 63 6b 00 | 00 20 20 80 7e 2e 6c 20 |t block.|. .~.l |
|00001120| 64 30 2c 61 30 3a 80 3d | 2e 6c 20 64 30 2c 64 31 |d0,a0:.=|.l d0,d1|
|00001130| 3a 80 3d 2e 6c 20 64 32 | 2c 61 30 3a 80 7e 2e 6c |:.=.l d2|,a0:.~.l|
|00001140| 20 64 33 2c 61 31 3a 80 | 7e 2e 62 20 23 53 54 52 | d3,a1:.|~.b #STR|
|00001150| 49 4e 47 5f 48 4f 4c 44 | 45 52 2c 64 32 00 53 45 |ING_HOLD|ER,d2.SE|
|00001160| 45 4b 5f 53 54 52 49 4e | 47 53 5f 4c 4f 4f 50 3a |EK_STRIN|GS_LOOP:|
|00001170| 20 80 5c 2e 62 20 2d 28 | 61 30 29 2c 64 32 3a 80 | .\.b -(|a0),d2:.|
|00001180| 50 20 53 45 45 4b 5f 53 | 54 52 49 4e 47 53 5f 46 |P SEEK_S|TRINGS_F|
|00001190| 4f 55 4e 44 3a 80 5c 2e | 6c 20 64 31 2c 61 30 3a |OUND:.\.|l d1,a0:|
|000011a0| 80 4a 20 53 45 45 4b 5f | 53 54 52 49 4e 47 53 5f |.J SEEK_|STRINGS_|
|000011b0| 4c 4f 4f 50 3a 80 58 20 | 53 45 45 4b 5f 53 54 52 |LOOP:.X |SEEK_STR|
|000011c0| 49 4e 47 53 5f 45 58 49 | 54 00 53 45 45 4b 5f 53 |INGS_EXI|T.SEEK_S|
|000011d0| 54 52 49 4e 47 53 5f 46 | 4f 55 4e 44 3a 20 80 aa |TRINGS_F|OUND: ..|
|000011e0| 2e 6c 20 23 33 2c 61 30 | 3a 80 7e 2e 6c 20 28 61 |.l #3,a0|:.~.l (a|
|000011f0| 30 29 2c 64 33 3a 80 5c | 2e 6c 20 23 24 38 30 30 |0),d3:.\|.l #$800|
|00001200| 30 30 30 43 31 2c 64 33 | 3a 80 48 20 53 45 45 4b |000C1,d3|:.H SEEK|
|00001210| 5f 53 54 52 49 4e 47 53 | 5f 53 4b 49 50 00 20 20 |_STRINGS|_SKIP. |
|00001220| 80 5c 2e 6c 20 23 24 46 | 46 46 46 30 30 30 30 2c |.\.l #$F|FFF0000,|
|00001230| 64 33 3a 80 48 20 53 45 | 45 4b 5f 53 54 52 49 4e |d3:.H SE|EK_STRIN|
|00001240| 47 53 5f 53 4b 49 50 3a | 80 7e 2e 6c 20 61 30 2c |GS_SKIP:|.~.l a0,|
|00001250| 64 33 3a 80 a7 2e 6c 20 | 64 30 2c 64 33 3a 80 7e |d3:...l |d0,d3:.~|
|00001260| 2e 6c 20 64 33 2c 28 61 | 31 29 2b 00 53 45 45 4b |.l d3,(a|1)+.SEEK|
|00001270| 5f 53 54 52 49 4e 47 53 | 5f 53 4b 49 50 3a 20 80 |_STRINGS|_SKIP: .|
|00001280| 5c 2e 6c 20 64 31 2c 61 | 30 3a 80 4a 20 53 45 45 |\.l d1,a|0:.J SEE|
|00001290| 4b 5f 53 54 52 49 4e 47 | 53 5f 4c 4f 4f 50 00 53 |K_STRING|S_LOOP.S|
|000012a0| 45 45 4b 5f 53 54 52 49 | 4e 47 53 5f 45 58 49 54 |EEK_STRI|NGS_EXIT|
|000012b0| 3a 20 80 7e 2e 6c 20 23 | 30 2c 28 61 31 29 00 20 |: .~.l #|0,(a1). |
|000012c0| 20 80 11 00 80 02 20 80 | 08 00 00 80 08 20 44 45 | ..... .|..... DE|
|000012d0| 41 4c 4c 4f 43 41 54 45 | 5f 53 54 52 49 4e 47 7b |ALLOCATE|_STRING{|
|000012e0| 73 74 72 70 74 72 2e 6c | 7d 00 20 20 3b 64 65 61 |strptr.l|}. ;dea|
|000012f0| 6c 6c 6f 63 61 74 65 20 | 61 20 62 6c 69 74 7a 20 |llocate |a blitz |
|00001300| 73 74 72 69 6e 67 00 00 | 20 20 73 74 72 70 6f 73 |string..| strpos|
|00001310| 2e 6c 3d 44 4c 4c 5f 4c | 45 45 4b 7b 73 74 72 70 |.l=DLL_L|EEK{strp|
|00001320| 74 72 7d 00 20 20 80 0b | 20 73 74 72 70 6f 73 3c |tr}. ..| strpos<|
|00001330| 3e 30 20 80 21 20 a6 09 | 20 73 74 72 70 6f 73 2d |>0 .! ..| strpos-|
|00001340| 38 2c 47 45 54 5f 41 4c | 4c 4f 43 41 54 45 44 5f |8,GET_AL|LOCATED_|
|00001350| 53 49 5a 45 7b 73 74 72 | 70 6f 73 2d 38 7d 3a 44 |SIZE{str|pos-8}:D|
|00001360| 4c 4c 5f 4c 4f 4b 45 7b | 73 74 72 70 74 72 2c 30 |LL_LOKE{|strptr,0|
|00001370| 7d 00 80 02 20 80 08 00 | 00 80 08 20 46 52 45 45 |}... ...|... FREE|
|00001380| 5f 53 54 52 49 4e 47 53 | 7b 2a 6c 69 73 74 68 65 |_STRINGS|{*listhe|
|00001390| 61 64 2e 64 6c 6c 68 65 | 61 64 2c 2a 63 75 72 69 |ad.dllhe|ad,*curi|
|000013a0| 74 65 6d 2e 64 6c 6c 7d | 00 20 20 3b 73 65 61 72 |tem.dll}|. ;sear|
|000013b0| 63 68 20 68 65 61 64 20 | 69 74 65 6d 20 66 6f 72 |ch head |item for|
|000013c0| 20 73 74 72 69 6e 67 73 | 20 74 6f 20 64 65 61 6c | strings| to deal|
|000013d0| 6c 6f 63 61 74 65 00 00 | 20 20 73 74 72 70 6f 73 |locate..| strpos|
|000013e0| 2e 6c 3d 26 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |.l=&*lis|thead\dl|
|000013f0| 6c 5f 66 69 72 73 74 73 | 74 72 69 6e 67 3a 70 6f |l_firsts|tring:po|
|00001400| 73 2e 6c 3d 44 4c 4c 5f | 4c 45 45 4b 7b 73 74 72 |s.l=DLL_|LEEK{str|
|00001410| 70 6f 73 7d 00 20 20 65 | 6e 64 73 69 7a 65 2e 6c |pos}. e|ndsize.l|
|00001420| 3d 47 45 54 5f 41 4c 4c | 4f 43 41 54 45 44 5f 53 |=GET_ALL|OCATED_S|
|00001430| 49 5a 45 7b 2a 63 75 72 | 69 74 65 6d 7d 00 20 20 |IZE{*cur|item}. |
|00001440| 80 0c 20 28 70 6f 73 3c | 3e 30 29 26 28 70 6f 73 |.. (pos<|>0)&(pos|
|00001450| 3c 65 6e 64 73 69 7a 65 | 29 00 20 20 20 20 44 45 |<endsize|). DE|
|00001460| 41 4c 4c 4f 43 41 54 45 | 5f 53 54 52 49 4e 47 7b |ALLOCATE|_STRING{|
|00001470| 2a 63 75 72 69 74 65 6d | 2b 70 6f 73 7d 3a 73 74 |*curitem|+pos}:st|
|00001480| 72 70 6f 73 3d 73 74 72 | 70 6f 73 2b 34 3a 70 6f |rpos=str|pos+4:po|
|00001490| 73 2e 6c 3d 44 4c 4c 5f | 4c 45 45 4b 7b 73 74 72 |s.l=DLL_|LEEK{str|
|000014a0| 70 6f 73 7d 00 20 20 80 | c1 00 80 02 20 80 08 00 |pos}. .|.... ...|
|000014b0| 00 80 08 20 49 4e 53 45 | 52 54 5f 49 54 45 4d 7b |... INSE|RT_ITEM{|
|000014c0| 2a 70 72 65 69 74 65 6d | 2e 64 6c 6c 2c 2a 6e 65 |*preitem|.dll,*ne|
|000014d0| 77 69 74 65 6d 2e 64 6c | 6c 7d 00 20 20 20 3b 69 |witem.dl|l}. ;i|
|000014e0| 6e 73 65 72 74 20 2a 6e | 65 77 20 69 6e 74 6f 20 |nsert *n|ew into |
|000014f0| 6c 69 73 74 00 00 20 20 | 20 2a 6e 65 77 69 74 65 |list.. | *newite|
|00001500| 6d 5c 64 6c 6c 5f 6e 65 | 78 74 20 20 3d 20 2a 70 |m\dll_ne|xt = *p|
|00001510| 72 65 69 74 65 6d 5c 64 | 6c 6c 5f 6e 65 78 74 2c |reitem\d|ll_next,|
|00001520| 2a 70 72 65 69 74 65 6d | 00 20 20 20 2a 70 72 65 |*preitem|. *pre|
|00001530| 69 74 65 6d 5c 64 6c 6c | 5f 6e 65 78 74 20 20 3d |item\dll|_next =|
|00001540| 20 2a 6e 65 77 69 74 65 | 6d 00 20 20 20 2a 70 6f | *newite|m. *po|
|00001550| 73 74 69 74 65 6d 2e 64 | 6c 6c 20 20 20 20 20 20 |stitem.d|ll |
|00001560| 3d 20 2a 6e 65 77 69 74 | 65 6d 5c 64 6c 6c 5f 6e |= *newit|em\dll_n|
|00001570| 65 78 74 00 20 20 20 2a | 70 6f 73 74 69 74 65 6d |ext. *|postitem|
|00001580| 5c 64 6c 6c 5f 70 72 65 | 76 20 3d 20 2a 6e 65 77 |\dll_pre|v = *new|
|00001590| 69 74 65 6d 00 80 02 20 | 80 08 00 00 80 08 20 52 |item... |...... R|
|000015a0| 45 4d 4f 56 45 5f 49 54 | 45 4d 7b 2a 63 75 72 69 |EMOVE_IT|EM{*curi|
|000015b0| 74 65 6d 2e 64 6c 6c 7d | 00 20 20 20 3b 72 65 6d |tem.dll}|. ;rem|
|000015c0| 6f 76 65 73 20 2a 63 75 | 72 69 74 65 6d 20 66 72 |oves *cu|ritem fr|
|000015d0| 6f 6d 20 6c 69 73 74 00 | 00 20 20 20 2a 70 72 65 |om list.|. *pre|
|000015e0| 69 74 65 6d 2e 64 6c 6c | 20 20 20 20 20 20 20 3d |item.dll| =|
|000015f0| 20 2a 63 75 72 69 74 65 | 6d 5c 64 6c 6c 5f 70 72 | *curite|m\dll_pr|
|00001600| 65 76 00 20 20 20 2a 70 | 72 65 69 74 65 6d 5c 64 |ev. *p|reitem\d|
|00001610| 6c 6c 5f 6e 65 78 74 20 | 20 3d 20 2a 63 75 72 69 |ll_next | = *curi|
|00001620| 74 65 6d 5c 64 6c 6c 5f | 6e 65 78 74 00 20 20 20 |tem\dll_|next. |
|00001630| 2a 70 6f 73 74 69 74 65 | 6d 2e 64 6c 6c 20 20 20 |*postite|m.dll |
|00001640| 20 20 20 3d 20 2a 63 75 | 72 69 74 65 6d 5c 64 6c | = *cu|ritem\dl|
|00001650| 6c 5f 6e 65 78 74 00 20 | 20 20 2a 70 6f 73 74 69 |l_next. | *posti|
|00001660| 74 65 6d 5c 64 6c 6c 5f | 70 72 65 76 20 3d 20 2a |tem\dll_|prev = *|
|00001670| 63 75 72 69 74 65 6d 5c | 64 6c 6c 5f 70 72 65 76 |curitem\|dll_prev|
|00001680| 00 80 02 20 80 08 00 00 | 80 09 2e 62 20 43 4f 4d |... ....|...b COM|
|00001690| 50 41 52 45 5f 49 54 45 | 4d 53 7b 2a 69 74 65 6d |PARE_ITE|MS{*item|
|000016a0| 6f 6e 65 2e 64 6c 6c 2c | 2a 69 74 65 6d 74 77 6f |one.dll,|*itemtwo|
|000016b0| 2e 64 6c 6c 2c 65 6e 74 | 72 79 70 61 74 68 2e 6c |.dll,ent|rypath.l|
|000016c0| 2c 76 61 72 74 79 70 65 | 2e 6c 7d 00 20 20 20 3b |,vartype|.l}. ;|
|000016d0| 63 6f 6d 70 61 72 65 20 | 76 61 72 69 61 62 6c 65 |compare |variable|
|000016e0| 73 20 66 72 6f 6d 20 74 | 68 65 20 74 77 6f 20 73 |s from t|he two s|
|000016f0| 75 70 70 6c 69 65 64 20 | 69 74 65 6d 73 00 20 20 |upplied |items. |
|00001700| 20 3b 61 6e 64 20 72 65 | 74 75 72 6e 20 2d 31 20 | ;and re|turn -1 |
|00001710| 69 66 20 74 68 65 20 73 | 65 63 6f 6e 64 20 69 73 |if the s|econd is|
|00001720| 20 73 6d 61 6c 6c 65 72 | 2c 20 30 20 69 66 20 65 | smaller|, 0 if e|
|00001730| 71 75 61 6c 2c 20 31 20 | 69 66 20 74 68 65 20 73 |qual, 1 |if the s|
|00001740| 65 63 6f 6e 64 20 69 73 | 20 67 72 65 61 74 65 72 |econd is| greater|
|00001750| 00 00 20 20 20 80 0e 20 | 76 61 72 74 79 70 65 00 |.. .. |vartype.|
|00001760| 20 20 20 20 20 20 80 0f | 20 23 56 41 52 54 59 50 | ..| #VARTYP|
|00001770| 45 5f 42 59 54 45 00 20 | 20 20 20 20 20 20 20 20 |E_BYTE. | |
|00001780| 80 09 20 80 07 20 bc 03 | 28 44 4c 4c 5f 42 45 45 |.. .. ..|(DLL_BEE|
|00001790| 4b 7b 2a 69 74 65 6d 74 | 77 6f 2b 65 6e 74 72 79 |K{*itemt|wo+entry|
|000017a0| 70 61 74 68 7d 2d 44 4c | 4c 5f 42 45 45 4b 7b 2a |path}-DL|L_BEEK{*|
|000017b0| 69 74 65 6d 6f 6e 65 2b | 65 6e 74 72 79 70 61 74 |itemone+|entrypat|
|000017c0| 68 7d 29 00 20 20 20 20 | 20 20 80 0f 20 23 56 41 |h}). | .. #VA|
|000017d0| 52 54 59 50 45 5f 57 4f | 52 44 00 20 20 20 20 20 |RTYPE_WO|RD. |
|000017e0| 20 20 20 20 80 09 20 80 | 07 20 bc 03 28 44 4c 4c | .. .|. ..(DLL|
|000017f0| 5f 57 45 45 4b 7b 2a 69 | 74 65 6d 74 77 6f 2b 65 |_WEEK{*i|temtwo+e|
|00001800| 6e 74 72 79 70 61 74 68 | 7d 2d 44 4c 4c 5f 57 45 |ntrypath|}-DLL_WE|
|00001810| 45 4b 7b 2a 69 74 65 6d | 6f 6e 65 2b 65 6e 74 72 |EK{*item|one+entr|
|00001820| 79 70 61 74 68 7d 29 00 | 20 20 20 20 20 20 80 0f |ypath}).| ..|
|00001830| 20 23 56 41 52 54 59 50 | 45 5f 4c 4f 4e 47 00 20 | #VARTYP|E_LONG. |
|00001840| 20 20 20 20 20 20 20 20 | 80 09 20 80 07 20 bc 03 | |.. .. ..|
|00001850| 28 44 4c 4c 5f 4c 45 45 | 4b 7b 2a 69 74 65 6d 74 |(DLL_LEE|K{*itemt|
|00001860| 77 6f 2b 65 6e 74 72 79 | 70 61 74 68 7d 2d 44 4c |wo+entry|path}-DL|
|00001870| 4c 5f 4c 45 45 4b 7b 2a | 69 74 65 6d 6f 6e 65 2b |L_LEEK{*|itemone+|
|00001880| 65 6e 74 72 79 70 61 74 | 68 7d 29 00 20 20 20 20 |entrypat|h}). |
|00001890| 20 20 80 0f 20 23 56 41 | 52 54 59 50 45 5f 51 55 | .. #VA|RTYPE_QU|
|000018a0| 49 43 4b 00 20 20 20 20 | 20 20 20 20 20 80 09 20 |ICK. | .. |
|000018b0| 80 07 20 bc 03 28 44 4c | 4c 5f 51 45 45 4b 7b 2a |.. ..(DL|L_QEEK{*|
|000018c0| 69 74 65 6d 74 77 6f 2b | 65 6e 74 72 79 70 61 74 |itemtwo+|entrypat|
|000018d0| 68 7d 2d 44 4c 4c 5f 51 | 45 45 4b 7b 2a 69 74 65 |h}-DLL_Q|EEK{*ite|
|000018e0| 6d 6f 6e 65 2b 65 6e 74 | 72 79 70 61 74 68 7d 29 |mone+ent|rypath})|
|000018f0| 00 20 20 20 20 20 20 80 | 0f 20 23 56 41 52 54 59 |. .|. #VARTY|
|00001900| 50 45 5f 46 4c 4f 41 54 | 00 20 20 20 20 20 20 20 |PE_FLOAT|. |
|00001910| 20 20 74 6d 70 2e 66 20 | 3d 20 44 4c 4c 5f 46 45 | tmp.f |= DLL_FE|
|00001920| 45 4b 7b 2a 69 74 65 6d | 74 77 6f 2b 65 6e 74 72 |EK{*item|two+entr|
|00001930| 79 70 61 74 68 7d 2d 44 | 4c 4c 5f 46 45 45 4b 7b |ypath}-D|LL_FEEK{|
|00001940| 2a 69 74 65 6d 6f 6e 65 | 2b 65 6e 74 72 79 70 61 |*itemone|+entrypa|
|00001950| 74 68 7d 00 20 20 20 20 | 20 20 20 20 20 80 09 20 |th}. | .. |
|00001960| 80 07 20 46 4c 4f 41 54 | 5f 53 47 4e 7b 26 74 6d |.. FLOAT|_SGN{&tm|
|00001970| 70 7d 00 3b 20 20 20 20 | 43 61 73 65 20 23 56 41 |p}.; |Case #VA|
|00001980| 52 54 59 50 45 5f 53 54 | 52 49 4e 47 3a 72 65 73 |RTYPE_ST|RING:res|
|00001990| 75 6c 74 2e 62 3d 53 67 | 6e 28 43 4f 4d 50 41 52 |ult.b=Sg|n(COMPAR|
|000019a0| 45 5f 53 54 52 49 4e 47 | 53 7b 44 4c 4c 5f 4c 45 |E_STRING|S{DLL_LE|
|000019b0| 45 4b 7b 2a 69 74 65 6d | 74 77 6f 2b 65 6e 74 72 |EK{*item|two+entr|
|000019c0| 79 70 61 74 68 7d 2c 44 | 4c 4c 5f 4c 45 45 4b 7b |ypath},D|LL_LEEK{|
|000019d0| 2a 69 74 65 6d 6f 6e 65 | 2b 65 6e 74 72 79 70 61 |*itemone|+entrypa|
|000019e0| 74 68 7d 7d 29 00 20 20 | 20 20 20 20 80 10 00 20 |th}}). | ... |
|000019f0| 20 20 20 20 20 20 20 20 | 80 09 20 80 07 20 30 00 | |.. .. 0.|
|00001a00| 20 20 80 02 20 80 0e 00 | 80 02 20 80 09 00 00 00 | .. ...|.. .....|
|00001a10| 2e 44 4c 4c 5f 55 53 45 | 52 20 3b 20 72 6f 75 74 |.DLL_USE|R ; rout|
|00001a20| 69 6e 65 73 00 00 80 08 | 20 4b 49 4c 4c 5f 49 54 |ines....| KILL_IT|
|00001a30| 45 4d 7b 2a 6c 69 73 74 | 68 65 61 64 2e 64 6c 6c |EM{*list|head.dll|
|00001a40| 68 65 61 64 7d 00 20 20 | 3b 64 65 6c 65 74 65 73 |head}. |;deletes|
|00001a50| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 69 74 65 | the cur|rent ite|
|00001a60| 6d 20 69 6e 20 74 68 65 | 20 6c 69 73 74 00 00 20 |m in the| list.. |
|00001a70| 20 2a 63 75 72 69 74 65 | 6d 2e 64 6c 6c 3d 2a 6c | *curite|m.dll=*l|
|00001a80| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 63 75 72 72 |isthead\|dll_curr|
|00001a90| 65 6e 74 5c 64 6c 6c 5f | 6e 65 78 74 00 20 20 80 |ent\dll_|next. .|
|00001aa0| 0b 20 28 2a 63 75 72 69 | 74 65 6d 3c 3e 30 29 26 |. (*curi|tem<>0)&|
|00001ab0| 28 28 2a 63 75 72 69 74 | 65 6d 5c 64 6c 6c 5f 6e |((*curit|em\dll_n|
|00001ac0| 65 78 74 3c 3e 30 29 26 | 28 2a 63 75 72 69 74 65 |ext<>0)&|(*curite|
|00001ad0| 6d 5c 64 6c 6c 5f 70 72 | 65 76 3c 3e 30 29 29 00 |m\dll_pr|ev<>0)).|
|00001ae0| 20 20 20 20 80 0b 20 2a | 63 75 72 69 74 65 6d 3c | .. *|curitem<|
|00001af0| 3e 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 74 |>*listhe|ad\dll_t|
|00001b00| 61 69 6c 70 72 65 76 00 | 20 20 20 20 20 20 53 45 |ailprev.| SE|
|00001b10| 54 5f 43 55 52 52 45 4e | 54 5f 49 54 45 4d 7b 2a |T_CURREN|T_ITEM{*|
|00001b20| 6c 69 73 74 68 65 61 64 | 2c 2a 63 75 72 69 74 65 |listhead|,*curite|
|00001b30| 6d 5c 64 6c 6c 5f 70 72 | 65 76 7d 00 20 20 20 20 |m\dll_pr|ev}. |
|00001b40| 80 22 00 20 20 20 20 20 | 20 80 0b 20 2a 63 75 72 |.". | .. *cur|
|00001b50| 69 74 65 6d 3c 3e 2a 6c | 69 73 74 68 65 61 64 5c |item<>*l|isthead\|
|00001b60| 64 6c 6c 5f 6e 65 78 74 | 00 20 20 20 20 20 20 20 |dll_next|. |
|00001b70| 20 53 45 54 5f 43 55 52 | 52 45 4e 54 5f 49 54 45 | SET_CUR|RENT_ITE|
|00001b80| 4d 7b 2a 6c 69 73 74 68 | 65 61 64 2c 2a 63 75 72 |M{*listh|ead,*cur|
|00001b90| 69 74 65 6d 5c 64 6c 6c | 5f 70 72 65 76 7d 00 20 |item\dll|_prev}. |
|00001ba0| 20 20 20 20 20 80 22 00 | 20 20 20 20 20 20 20 20 | .".| |
|00001bb0| 53 45 54 5f 43 55 52 52 | 45 4e 54 5f 49 54 45 4d |SET_CURR|ENT_ITEM|
|00001bc0| 7b 2a 6c 69 73 74 68 65 | 61 64 2c 30 7d 00 20 20 |{*listhe|ad,0}. |
|00001bd0| 20 20 20 20 80 c0 00 20 | 20 20 20 80 c0 00 20 20 | ... | ... |
|00001be0| 20 20 52 45 4d 4f 56 45 | 5f 49 54 45 4d 7b 2a 63 | REMOVE|_ITEM{*c|
|00001bf0| 75 72 69 74 65 6d 7d 00 | 20 20 20 20 2a 6c 69 73 |uritem}.| *lis|
|00001c00| 74 68 65 61 64 5c 64 6c | 6c 5f 69 74 65 6d 73 69 |thead\dl|l_itemsi|
|00001c10| 6e 6c 69 73 74 2d 31 00 | 20 20 20 20 2a 6c 69 73 |nlist-1.| *lis|
|00001c20| 74 68 65 61 64 5c 64 6c | 6c 5f 63 75 72 70 6f 73 |thead\dl|l_curpos|
|00001c30| 20 2d 20 31 00 20 20 20 | 20 46 52 45 45 5f 53 54 | - 1. | FREE_ST|
|00001c40| 52 49 4e 47 53 7b 2a 6c | 69 73 74 68 65 61 64 2c |RINGS{*l|isthead,|
|00001c50| 2a 63 75 72 69 74 65 6d | 7d 00 20 20 20 20 a6 09 |*curitem|}. ..|
|00001c60| 20 2a 63 75 72 69 74 65 | 6d 2c 47 45 54 5f 41 4c | *curite|m,GET_AL|
|00001c70| 4c 4f 43 41 54 45 44 5f | 53 49 5a 45 7b 2a 63 75 |LOCATED_|SIZE{*cu|
|00001c80| 72 69 74 65 6d 7d 00 20 | 20 80 c0 00 80 02 20 80 |ritem}. | ..... .|
|00001c90| 08 00 00 80 09 2e 62 20 | 46 49 52 53 54 5f 49 54 |......b |FIRST_IT|
|00001ca0| 45 4d 7b 2a 6c 69 73 74 | 68 65 61 64 2e 64 6c 6c |EM{*list|head.dll|
|00001cb0| 68 65 61 64 7d 00 20 20 | 3b 6d 6f 76 65 20 74 6f |head}. |;move to|
|00001cc0| 20 74 68 65 20 66 69 72 | 73 74 20 69 74 65 6d 20 | the fir|st item |
|00001cd0| 69 6e 20 74 68 65 20 6c | 69 73 74 20 69 66 20 70 |in the l|ist if p|
|00001ce0| 6f 73 73 69 62 6c 65 00 | 20 20 3b 72 65 74 75 72 |ossible.| ;retur|
|00001cf0| 6e 73 20 74 72 75 65 20 | 69 66 20 73 75 63 63 65 |ns true |if succe|
|00001d00| 73 73 66 75 6c 20 61 6e | 64 20 66 61 6c 73 65 20 |ssful an|d false |
|00001d10| 69 66 20 6e 6f 74 2c 20 | 61 6e 64 20 6f 6e 6c 79 |if not, |and only|
|00001d20| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 74 68 65 00 | changes| to the.|
|00001d30| 20 20 3b 66 69 72 73 74 | 20 69 74 65 6d 20 69 66 | ;first| item if|
|00001d40| 20 74 68 65 72 65 20 69 | 73 20 61 63 74 75 61 6c | there i|s actual|
|00001d50| 6c 79 20 66 69 72 73 74 | 20 69 74 65 6d 20 69 6e |ly first| item in|
|00001d60| 20 74 68 65 20 6c 69 73 | 74 00 00 20 20 2a 74 6d | the lis|t.. *tm|
|00001d70| 70 69 74 65 6d 2e 64 6c | 6c 3d 2a 6c 69 73 74 68 |pitem.dl|l=*listh|
|00001d80| 65 61 64 5c 64 6c 6c 5f | 6e 65 78 74 00 20 20 80 |ead\dll_|next. .|
|00001d90| 0b 20 28 2a 74 6d 70 69 | 74 65 6d 5c 64 6c 6c 5f |. (*tmpi|tem\dll_|
|00001da0| 6e 65 78 74 3c 3e 30 29 | 26 28 2a 74 6d 70 69 74 |next<>0)|&(*tmpit|
|00001db0| 65 6d 5c 64 6c 6c 5f 70 | 72 65 76 3c 3e 30 29 00 |em\dll_p|rev<>0).|
|00001dc0| 20 20 20 20 53 45 54 5f | 43 55 52 52 45 4e 54 5f | SET_|CURRENT_|
|00001dd0| 49 54 45 4d 7b 2a 6c 69 | 73 74 68 65 61 64 2c 2a |ITEM{*li|sthead,*|
|00001de0| 74 6d 70 69 74 65 6d 7d | 00 20 20 20 20 2a 6c 69 |tmpitem}|. *li|
|00001df0| 73 74 68 65 61 64 5c 64 | 6c 6c 5f 63 75 72 70 6f |sthead\d|ll_curpo|
|00001e00| 73 20 3d 20 31 00 20 20 | 20 20 80 09 20 80 07 20 |s = 1. | .. .. |
|00001e10| 23 44 4c 4c 5f 54 72 75 | 65 00 20 20 80 22 00 20 |#DLL_Tru|e. .". |
|00001e20| 20 20 20 80 09 20 80 07 | 20 23 44 4c 4c 5f 46 61 | .. ..| #DLL_Fa|
|00001e30| 6c 73 65 00 20 20 80 c0 | 00 80 02 20 80 09 00 00 |lse. ..|... ....|
|00001e40| 80 09 2e 62 20 4c 41 53 | 54 5f 49 54 45 4d 7b 2a |...b LAS|T_ITEM{*|
|00001e50| 6c 69 73 74 68 65 61 64 | 2e 64 6c 6c 68 65 61 64 |listhead|.dllhead|
|00001e60| 7d 00 20 20 3b 6d 6f 76 | 65 20 74 6f 20 74 68 65 |}. ;mov|e to the|
|00001e70| 20 6c 61 73 74 20 69 74 | 65 6d 20 69 6e 20 74 68 | last it|em in th|
|00001e80| 65 20 6c 69 73 74 20 69 | 66 20 70 6f 73 73 69 62 |e list i|f possib|
|00001e90| 6c 65 00 20 20 3b 72 65 | 74 75 72 6e 73 20 74 72 |le. ;re|turns tr|
|00001ea0| 75 65 20 69 66 20 73 75 | 63 63 65 73 73 66 75 6c |ue if su|ccessful|
|00001eb0| 20 61 6e 64 20 66 61 6c | 73 65 20 69 66 20 6e 6f | and fal|se if no|
|00001ec0| 74 2c 20 61 6e 64 20 6f | 6e 6c 79 20 63 68 61 6e |t, and o|nly chan|
|00001ed0| 67 65 73 20 74 6f 20 74 | 68 65 00 20 20 3b 6c 61 |ges to t|he. ;la|
|00001ee0| 73 74 20 69 74 65 6d 20 | 69 66 20 74 68 65 72 65 |st item |if there|
|00001ef0| 20 69 73 20 61 63 74 75 | 61 6c 6c 79 20 6c 61 73 | is actu|ally las|
|00001f00| 74 20 69 74 65 6d 20 69 | 6e 20 74 68 65 20 6c 69 |t item i|n the li|
|00001f10| 73 74 20 28 69 65 2c 20 | 6e 6f 74 20 77 68 65 6e |st (ie, |not when|
|00001f20| 20 6c 69 73 74 20 69 73 | 20 65 6d 70 74 79 29 00 | list is| empty).|
|00001f30| 00 20 20 2a 74 6d 70 69 | 74 65 6d 2e 64 6c 6c 3d |. *tmpi|tem.dll=|
|00001f40| 2a 6c 69 73 74 68 65 61 | 64 5c 64 6c 6c 5f 74 61 |*listhea|d\dll_ta|
|00001f50| 69 6c 70 72 65 76 00 20 | 20 80 0b 20 28 2a 74 6d |ilprev. | .. (*tm|
|00001f60| 70 69 74 65 6d 5c 64 6c | 6c 5f 6e 65 78 74 3c 3e |pitem\dl|l_next<>|
|00001f70| 30 29 26 28 2a 74 6d 70 | 69 74 65 6d 5c 64 6c 6c |0)&(*tmp|item\dll|
|00001f80| 5f 70 72 65 76 3c 3e 30 | 29 00 20 20 20 20 53 45 |_prev<>0|). SE|
|00001f90| 54 5f 43 55 52 52 45 4e | 54 5f 49 54 45 4d 7b 2a |T_CURREN|T_ITEM{*|
|00001fa0| 6c 69 73 74 68 65 61 64 | 2c 2a 74 6d 70 69 74 65 |listhead|,*tmpite|
|00001fb0| 6d 7d 00 20 20 20 20 2a | 6c 69 73 74 68 65 61 64 |m}. *|listhead|
|00001fc0| 5c 64 6c 6c 5f 63 75 72 | 70 6f 73 20 3d 20 2a 6c |\dll_cur|pos = *l|
|00001fd0| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 69 74 65 6d |isthead\|dll_item|
|00001fe0| 73 69 6e 6c 69 73 74 00 | 20 20 20 20 80 09 20 80 |sinlist.| .. .|
|00001ff0| 07 20 23 44 4c 4c 5f 54 | 72 75 65 00 20 20 80 22 |. #DLL_T|rue. ."|
|00002000| 00 20 20 20 20 80 09 20 | 80 07 20 23 44 4c 4c 5f |. .. |.. #DLL_|
|00002010| 46 61 6c 73 65 00 20 20 | 80 c0 00 80 02 20 80 09 |False. |..... ..|
|00002020| 00 00 80 08 20 4e 4f 5f | 4d 4f 52 45 5f 49 54 45 |.... NO_|MORE_ITE|
|00002030| 4d 53 7b 2a 6c 69 73 74 | 68 65 61 64 2e 64 6c 6c |MS{*list|head.dll|
|00002040| 68 65 61 64 7d 00 20 20 | 20 3b 20 20 4d 6f 76 65 |head}. | ; Move|
|00002050| 20 74 6f 20 74 68 65 20 | 6c 61 73 74 20 69 74 65 | to the |last ite|
|00002060| 6d 20 69 6e 20 74 68 65 | 20 6c 69 73 74 20 69 66 |m in the| list if|
|00002070| 20 70 6f 73 73 69 62 6c | 65 2c 20 73 6f 20 74 68 | possibl|e, so th|
|00002080| 61 74 20 61 00 20 20 20 | 3b 20 20 22 57 68 69 6c |at a. |; "Whil|
|00002090| 65 20 4e 45 58 54 5f 49 | 54 45 4d 7b 7d 22 20 6c |e NEXT_I|TEM{}" l|
|000020a0| 6f 6f 70 20 63 61 6e 20 | 62 65 20 74 65 72 6d 69 |oop can |be termi|
|000020b0| 6e 61 74 65 64 00 20 20 | 20 3b 20 20 4f 6e 6c 79 |nated. | ; Only|
|000020c0| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 74 68 65 20 | changes| to the |
|000020d0| 6c 61 73 74 20 69 74 65 | 6d 20 69 66 20 74 68 65 |last ite|m if the|
|000020e0| 72 65 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 6c |re is ac|tually l|
|000020f0| 61 73 74 20 69 74 65 6d | 00 20 20 20 3b 20 20 69 |ast item|. ; i|
|00002100| 6e 20 74 68 65 20 6c 69 | 73 74 20 28 69 65 2c 20 |n the li|st (ie, |
|00002110| 6e 6f 74 20 77 68 65 6e | 20 74 68 65 20 6c 69 73 |not when| the lis|
|00002120| 74 20 69 73 20 65 6d 70 | 74 79 29 00 20 20 20 3b |t is emp|ty). ;|
|00002130| 00 20 20 20 3b 20 20 53 | 61 6d 65 20 61 73 20 4c |. ; S|ame as L|
|00002140| 41 53 54 5f 49 54 45 4d | 20 65 78 63 65 70 74 20 |AST_ITEM| except |
|00002150| 74 68 61 74 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |that it |does not|
|00002160| 20 72 65 74 75 72 6e 20 | 61 20 76 61 6c 75 65 00 | return |a value.|
|00002170| 00 20 20 2a 74 6d 70 69 | 74 65 6d 2e 64 6c 6c 3d |. *tmpi|tem.dll=|
|00002180| 2a 6c 69 73 74 68 65 61 | 64 5c 64 6c 6c 5f 74 61 |*listhea|d\dll_ta|
|00002190| 69 6c 70 72 65 76 00 20 | 20 80 0b 20 28 2a 74 6d |ilprev. | .. (*tm|
|000021a0| 70 69 74 65 6d 5c 64 6c | 6c 5f 6e 65 78 74 3c 3e |pitem\dl|l_next<>|
|000021b0| 30 29 26 28 2a 74 6d 70 | 69 74 65 6d 5c 64 6c 6c |0)&(*tmp|item\dll|
|000021c0| 5f 70 72 65 76 3c 3e 30 | 29 00 20 20 20 20 53 45 |_prev<>0|). SE|
|000021d0| 54 5f 43 55 52 52 45 4e | 54 5f 49 54 45 4d 7b 2a |T_CURREN|T_ITEM{*|
|000021e0| 6c 69 73 74 68 65 61 64 | 2c 2a 74 6d 70 69 74 65 |listhead|,*tmpite|
|000021f0| 6d 7d 00 20 20 20 20 2a | 6c 69 73 74 68 65 61 64 |m}. *|listhead|
|00002200| 5c 64 6c 6c 5f 63 75 72 | 70 6f 73 20 3d 20 2a 6c |\dll_cur|pos = *l|
|00002210| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 69 74 65 6d |isthead\|dll_item|
|00002220| 73 69 6e 6c 69 73 74 00 | 20 20 80 c0 00 80 02 20 |sinlist.| ..... |
|00002230| 80 08 00 00 80 08 20 52 | 45 53 45 54 5f 4c 49 53 |...... R|ESET_LIS|
|00002240| 54 7b 2a 6c 69 73 74 68 | 65 61 64 2e 64 6c 6c 68 |T{*listh|ead.dllh|
|00002250| 65 61 64 7d 00 20 20 3b | 72 65 73 65 74 20 63 75 |ead}. ;|reset cu|
|00002260| 72 72 65 6e 74 20 6c 69 | 73 74 20 69 74 65 6d 20 |rrent li|st item |
|00002270| 70 6f 69 6e 74 65 72 20 | 74 6f 20 30 00 00 20 20 |pointer |to 0.. |
|00002280| 53 45 54 5f 43 55 52 52 | 45 4e 54 5f 49 54 45 4d |SET_CURR|ENT_ITEM|
|00002290| 7b 2a 6c 69 73 74 68 65 | 61 64 2c 30 7d 00 20 20 |{*listhe|ad,0}. |
|000022a0| 2a 6c 69 73 74 68 65 61 | 64 5c 64 6c 6c 5f 63 75 |*listhea|d\dll_cu|
|000022b0| 72 70 6f 73 20 3d 20 30 | 00 80 02 20 80 08 00 00 |rpos = 0|... ....|
|000022c0| 80 08 20 43 4c 45 41 52 | 5f 4c 49 53 54 7b 2a 6c |.. CLEAR|_LIST{*l|
|000022d0| 69 73 74 68 65 61 64 2e | 64 6c 6c 68 65 61 64 7d |isthead.|dllhead}|
|000022e0| 00 20 20 3b 65 6d 70 74 | 79 20 6c 69 73 74 20 6f |. ;empt|y list o|
|000022f0| 66 20 69 74 65 6d 73 2c | 20 61 6e 64 20 72 65 73 |f items,| and res|
|00002300| 65 74 20 73 74 61 63 6b | 20 70 6f 73 69 74 69 6f |et stack| positio|
|00002310| 6e 00 00 20 20 80 0b 20 | 4c 41 53 54 5f 49 54 45 |n.. .. |LAST_ITE|
|00002320| 4d 7b 2a 6c 69 73 74 68 | 65 61 64 7d 00 20 20 20 |M{*listh|ead}. |
|00002330| 20 20 80 0c 20 2a 6c 69 | 73 74 68 65 61 64 5c 64 | .. *li|sthead\d|
|00002340| 6c 6c 5f 63 75 72 70 6f | 73 20 3c 3e 20 30 00 20 |ll_curpo|s <> 0. |
|00002350| 20 20 20 20 20 20 4b 49 | 4c 4c 5f 49 54 45 4d 7b | KI|LL_ITEM{|
|00002360| 2a 6c 69 73 74 68 65 61 | 64 7d 00 20 20 20 20 20 |*listhea|d}. |
|00002370| 80 c1 00 20 20 80 c0 00 | 20 20 2a 6c 69 73 74 68 |... ...| *listh|
|00002380| 65 61 64 5c 64 6c 6c 5f | 73 74 61 63 6b 63 75 72 |ead\dll_|stackcur|
|00002390| 72 65 6e 74 3d 2a 6c 69 | 73 74 68 65 61 64 5c 64 |rent=*li|sthead\d|
|000023a0| 6c 6c 5f 73 74 61 63 6b | 73 74 61 72 74 3a 53 45 |ll_stack|start:SE|
|000023b0| 54 5f 43 55 52 52 45 4e | 54 5f 49 54 45 4d 7b 2a |T_CURREN|T_ITEM{*|
|000023c0| 6c 69 73 74 68 65 61 64 | 2c 30 7d 00 80 02 20 80 |listhead|,0}... .|
|000023d0| 08 00 00 80 1c 20 23 44 | 4c 4c 5f 54 52 41 50 5f |..... #D|LL_TRAP_|
|000023e0| 45 52 52 4f 52 53 00 80 | 08 20 41 44 44 5f 49 54 |ERRORS..|. ADD_IT|
|000023f0| 45 4d 7b 2a 6c 69 73 74 | 68 65 61 64 2e 64 6c 6c |EM{*list|head.dll|
|00002400| 68 65 61 64 2c 73 69 7a | 65 2e 6c 7d 00 80 1e 00 |head,siz|e.l}....|
|00002410| 80 09 2e 62 20 41 44 44 | 5f 49 54 45 4d 7b 2a 6c |...b ADD|_ITEM{*l|
|00002420| 69 73 74 68 65 61 64 2e | 64 6c 6c 68 65 61 64 2c |isthead.|dllhead,|
|00002430| 73 69 7a 65 2e 6c 7d 00 | 80 1f 00 20 20 20 3b 61 |size.l}.|... ;a|
|00002440| 64 64 73 20 61 6e 20 69 | 74 65 6d 20 74 6f 20 74 |dds an i|tem to t|
|00002450| 68 65 20 6c 69 73 74 2c | 20 6f 66 20 73 69 7a 65 |he list,| of size|
|00002460| 00 20 20 20 3b 61 6e 64 | 20 73 65 74 73 20 74 68 |. ;and| sets th|
|00002470| 65 20 6c 69 73 74 27 73 | 20 63 75 72 72 65 6e 74 |e list's| current|
|00002480| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00002490| 6e 65 77 6c 79 20 63 72 | 65 61 74 65 64 20 69 74 |newly cr|eated it|
|000024a0| 65 6d 20 69 66 20 61 76 | 61 69 6c 61 62 6c 65 00 |em if av|ailable.|
|000024b0| 00 20 20 20 2a 6e 65 77 | 69 74 65 6d 2e 64 6c 6c |. *new|item.dll|
|000024c0| 3d a6 08 28 73 69 7a 65 | 2c 24 31 30 30 30 30 29 |=..(size|,$10000)|
|000024d0| 00 20 20 20 80 0b 20 2a | 6e 65 77 69 74 65 6d 3c |. .. *|newitem<|
|000024e0| 3e 30 00 20 20 20 20 20 | 20 2a 63 75 72 69 74 65 |>0. | *curite|
|000024f0| 6d 2e 64 6c 6c 3d 2a 6c | 69 73 74 68 65 61 64 5c |m.dll=*l|isthead\|
|00002500| 64 6c 6c 5f 63 75 72 72 | 65 6e 74 5c 64 6c 6c 5f |dll_curr|ent\dll_|
|00002510| 6e 65 78 74 3a 80 0b 20 | 2a 63 75 72 69 74 65 6d |next:.. |*curitem|
|00002520| 3d 30 20 80 21 20 2a 63 | 75 72 69 74 65 6d 3d 2a |=0 .! *c|uritem=*|
|00002530| 6c 69 73 74 68 65 61 64 | 00 20 20 20 20 20 20 49 |listhead|. I|
|00002540| 4e 53 45 52 54 5f 49 54 | 45 4d 7b 2a 63 75 72 69 |NSERT_IT|EM{*curi|
|00002550| 74 65 6d 2c 2a 6e 65 77 | 69 74 65 6d 7d 00 20 20 |tem,*new|item}. |
|00002560| 20 20 20 20 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c | *lis|thead\dl|
|00002570| 6c 5f 69 74 65 6d 73 69 | 6e 6c 69 73 74 20 2b 20 |l_itemsi|nlist + |
|00002580| 31 00 20 20 20 20 20 20 | 53 45 54 5f 43 55 52 52 |1. |SET_CURR|
|00002590| 45 4e 54 5f 49 54 45 4d | 7b 2a 6c 69 73 74 68 65 |ENT_ITEM|{*listhe|
|000025a0| 61 64 2c 2a 6e 65 77 69 | 74 65 6d 7d 00 20 20 20 |ad,*newi|tem}. |
|000025b0| 20 20 20 2a 6c 69 73 74 | 68 65 61 64 5c 64 6c 6c | *list|head\dll|
|000025c0| 5f 63 75 72 70 6f 73 20 | 2b 20 31 00 80 1c 20 23 |_curpos |+ 1... #|
|000025d0| 44 4c 4c 5f 54 52 41 50 | 5f 45 52 52 4f 52 53 00 |DLL_TRAP|_ERRORS.|
|000025e0| 20 20 20 80 22 00 20 20 | 20 20 20 20 46 61 74 61 | .". | Fata|
|000025f0| 6c 5f 45 72 72 6f 72 7b | 22 43 6f 75 6c 64 20 6e |l_Error{|"Could n|
|00002600| 6f 74 20 61 64 64 20 61 | 20 4c 69 73 74 20 49 74 |ot add a| List It|
|00002610| 65 6d 22 7d 00 20 20 20 | 80 c0 00 80 02 20 80 08 |em"}. |..... ..|
|00002620| 00 80 1e 00 20 20 20 20 | 20 20 80 09 20 80 07 20 |.... | .. .. |
|00002630| 23 44 4c 4c 5f 54 72 75 | 65 00 20 20 20 80 22 00 |#DLL_Tru|e. .".|
|00002640| 20 20 20 20 20 20 80 09 | 20 80 07 20 23 44 4c 4c | ..| .. #DLL|
|00002650| 5f 46 61 6c 73 65 00 20 | 20 20 80 c0 00 80 02 20 |_False. | ..... |
|00002660| 80 09 00 80 1f 00 00 80 | 1c 20 23 44 4c 4c 5f 54 |........|. #DLL_T|
|00002670| 52 41 50 5f 45 52 52 4f | 52 53 00 80 08 20 41 44 |RAP_ERRO|RS... AD|
|00002680| 44 5f 46 49 52 53 54 7b | 2a 6c 69 73 74 68 65 61 |D_FIRST{|*listhea|
|00002690| 64 2e 64 6c 6c 68 65 61 | 64 2c 73 69 7a 65 2e 6c |d.dllhea|d,size.l|
|000026a0| 7d 00 80 1e 00 80 09 2e | 62 20 41 44 44 5f 46 49 |}.......|b ADD_FI|
|000026b0| 52 53 54 7b 2a 6c 69 73 | 74 68 65 61 64 2e 64 6c |RST{*lis|thead.dl|
|000026c0| 6c 68 65 61 64 2c 73 69 | 7a 65 2e 6c 7d 00 80 1f |lhead,si|ze.l}...|
|000026d0| 00 20 20 3b 73 61 6d 65 | 20 61 73 20 61 64 64 20 |. ;same| as add |
|000026e0| 69 74 65 6d 2c 20 65 78 | 63 65 70 74 20 69 74 20 |item, ex|cept it |
|000026f0| 61 64 64 73 20 74 68 65 | 20 69 74 65 6d 20 61 74 |adds the| item at|
|00002700| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 74 68 | the sta|rt of th|
|00002710| 65 20 6c 69 73 74 00 20 | 20 3b 61 6e 64 20 73 65 |e list. | ;and se|
|00002720| 74 73 20 74 68 65 20 6c | 69 73 74 27 73 20 63 75 |ts the l|ist's cu|
|00002730| 72 72 65 6e 74 20 70 6f | 69 6e 74 65 72 20 74 6f |rrent po|inter to|
|00002740| 20 74 68 65 20 6e 65 77 | 6c 79 20 63 72 65 61 74 | the new|ly creat|
|00002750| 65 64 20 69 74 65 6d 20 | 69 66 20 61 76 61 69 6c |ed item |if avail|
|00002760| 61 62 6c 65 00 00 20 20 | 2a 63 75 72 69 74 65 6d |able.. |*curitem|
|00002770| 2e 64 6c 6c 3d 2a 6c 69 | 73 74 68 65 61 64 5c 64 |.dll=*li|sthead\d|
|00002780| 6c 6c 5f 63 75 72 72 65 | 6e 74 5c 64 6c 6c 5f 6e |ll_curre|nt\dll_n|
|00002790| 65 78 74 3a 53 45 54 5f | 43 55 52 52 45 4e 54 5f |ext:SET_|CURRENT_|
|000027a0| 49 54 45 4d 7b 2a 6c 69 | 73 74 68 65 61 64 2c 2a |ITEM{*li|sthead,*|
|000027b0| 6c 69 73 74 68 65 61 64 | 7d 00 80 1c 20 23 44 4c |listhead|}... #DL|
|000027c0| 4c 5f 54 52 41 50 5f 45 | 52 52 4f 52 53 00 20 20 |L_TRAP_E|RRORS. |
|000027d0| 41 44 44 5f 49 54 45 4d | 7b 2a 6c 69 73 74 68 65 |ADD_ITEM|{*listhe|
|000027e0| 61 64 2c 73 69 7a 65 7d | 00 20 20 2a 6c 69 73 74 |ad,size}|. *list|
|000027f0| 68 65 61 64 5c 64 6c 6c | 5f 63 75 72 70 6f 73 20 |head\dll|_curpos |
|00002800| 3d 20 31 00 80 02 20 80 | 08 00 80 1e 00 20 20 80 |= 1... .|..... .|
|00002810| 0b 20 41 44 44 5f 49 54 | 45 4d 7b 2a 6c 69 73 74 |. ADD_IT|EM{*list|
|00002820| 68 65 61 64 2c 73 69 7a | 65 7d 3d 23 44 4c 4c 5f |head,siz|e}=#DLL_|
|00002830| 54 72 75 65 00 20 20 20 | 20 20 2a 6c 69 73 74 68 |True. | *listh|
|00002840| 65 61 64 5c 64 6c 6c 5f | 63 75 72 70 6f 73 20 3d |ead\dll_|curpos =|
|00002850| 20 31 00 20 20 20 20 20 | 80 09 20 80 07 20 23 44 | 1. |.. .. #D|
|00002860| 4c 4c 5f 54 72 75 65 00 | 20 20 80 22 00 20 20 20 |LL_True.| .". |
|00002870| 20 53 45 54 5f 43 55 52 | 52 45 4e 54 5f 49 54 45 | SET_CUR|RENT_ITE|
|00002880| 4d 7b 2a 6c 69 73 74 68 | 65 61 64 2c 2a 63 75 72 |M{*listh|ead,*cur|
|00002890| 69 74 65 6d 7d 00 20 20 | 20 20 80 09 20 80 07 20 |item}. | .. .. |
|000028a0| 23 44 4c 4c 5f 46 61 6c | 73 65 00 20 20 80 c0 00 |#DLL_Fal|se. ...|
|000028b0| 80 02 20 80 09 00 80 1f | 00 00 80 1c 20 23 44 4c |.. .....|.... #DL|
|000028c0| 4c 5f 54 52 41 50 5f 45 | 52 52 4f 52 53 00 80 08 |L_TRAP_E|RRORS...|
|000028d0| 20 41 44 44 5f 4c 41 53 | 54 7b 2a 6c 69 73 74 68 | ADD_LAS|T{*listh|
|000028e0| 65 61 64 2e 64 6c 6c 68 | 65 61 64 2c 73 69 7a 65 |ead.dllh|ead,size|
|000028f0| 2e 6c 7d 00 80 1e 00 80 | 09 2e 62 20 41 44 44 5f |.l}.....|..b ADD_|
|00002900| 4c 41 53 54 7b 2a 6c 69 | 73 74 68 65 61 64 2e 64 |LAST{*li|sthead.d|
|00002910| 6c 6c 68 65 61 64 2c 73 | 69 7a 65 2e 6c 7d 00 80 |llhead,s|ize.l}..|
|00002920| 1f 00 20 20 3b 73 61 6d | 65 20 61 73 20 61 64 64 |.. ;sam|e as add|
|00002930| 20 69 74 65 6d 2c 20 65 | 78 63 65 70 74 20 69 74 | item, e|xcept it|
|00002940| 20 61 64 64 73 20 74 68 | 65 20 69 74 65 6d 20 61 | adds th|e item a|
|00002950| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |t the en|d of the|
|00002960| 20 6c 69 73 74 00 20 20 | 3b 61 6e 64 20 73 65 74 | list. |;and set|
|00002970| 73 20 74 68 65 20 6c 69 | 73 74 27 73 20 63 75 72 |s the li|st's cur|
|00002980| 72 65 6e 74 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |rent poi|nter to |
|00002990| 74 68 65 20 6e 65 77 6c | 79 20 63 72 65 61 74 65 |the newl|y create|
|000029a0| 64 20 69 74 65 6d 20 69 | 66 20 61 76 61 69 6c 61 |d item i|f availa|
|000029b0| 62 6c 65 00 00 20 20 2a | 63 75 72 69 74 65 6d 2e |ble.. *|curitem.|
|000029c0| 64 6c 6c 3d 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |dll=*lis|thead\dl|
|000029d0| 6c 5f 63 75 72 72 65 6e | 74 5c 64 6c 6c 5f 6e 65 |l_curren|t\dll_ne|
|000029e0| 78 74 3a 53 45 54 5f 43 | 55 52 52 45 4e 54 5f 49 |xt:SET_C|URRENT_I|
|000029f0| 54 45 4d 7b 2a 6c 69 73 | 74 68 65 61 64 2c 2a 6c |TEM{*lis|thead,*l|
|00002a00| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 74 61 69 6c |isthead\|dll_tail|
|00002a10| 70 72 65 76 7d 00 80 1c | 20 23 44 4c 4c 5f 54 52 |prev}...| #DLL_TR|
|00002a20| 41 50 5f 45 52 52 4f 52 | 53 00 20 20 41 44 44 5f |AP_ERROR|S. ADD_|
|00002a30| 49 54 45 4d 7b 2a 6c 69 | 73 74 68 65 61 64 2c 73 |ITEM{*li|sthead,s|
|00002a40| 69 7a 65 7d 00 20 20 2a | 6c 69 73 74 68 65 61 64 |ize}. *|listhead|
|00002a50| 5c 64 6c 6c 5f 63 75 72 | 70 6f 73 20 3d 20 2a 6c |\dll_cur|pos = *l|
|00002a60| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 69 74 65 6d |isthead\|dll_item|
|00002a70| 73 69 6e 6c 69 73 74 00 | 80 02 20 80 08 00 80 1e |sinlist.|.. .....|
|00002a80| 00 20 20 80 0b 20 41 44 | 44 5f 49 54 45 4d 7b 2a |. .. AD|D_ITEM{*|
|00002a90| 6c 69 73 74 68 65 61 64 | 2c 73 69 7a 65 7d 3d 23 |listhead|,size}=#|
|00002aa0| 44 4c 4c 5f 54 72 75 65 | 00 20 20 20 20 20 2a 6c |DLL_True|. *l|
|00002ab0| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 63 75 72 70 |isthead\|dll_curp|
|00002ac0| 6f 73 20 3d 20 2a 6c 69 | 73 74 68 65 61 64 5c 64 |os = *li|sthead\d|
|00002ad0| 6c 6c 5f 69 74 65 6d 73 | 69 6e 6c 69 73 74 00 20 |ll_items|inlist. |
|00002ae0| 20 20 20 20 80 09 20 80 | 07 20 23 44 4c 4c 5f 54 | .. .|. #DLL_T|
|00002af0| 72 75 65 00 20 20 80 22 | 00 20 20 20 20 53 45 54 |rue. ."|. SET|
|00002b00| 5f 43 55 52 52 45 4e 54 | 5f 49 54 45 4d 7b 2a 6c |_CURRENT|_ITEM{*l|
|00002b10| 69 73 74 68 65 61 64 2c | 2a 63 75 72 69 74 65 6d |isthead,|*curitem|
|00002b20| 7d 00 20 20 20 20 80 09 | 20 80 07 20 23 44 4c 4c |}. ..| .. #DLL|
|00002b30| 5f 46 61 6c 73 65 00 20 | 20 80 c0 00 80 02 20 80 |_False. | ..... .|
|00002b40| 09 00 80 1f 00 00 80 1c | 20 23 44 4c 4c 5f 54 52 |........| #DLL_TR|
|00002b50| 41 50 5f 45 52 52 4f 52 | 53 00 80 08 20 49 54 45 |AP_ERROR|S... ITE|
|00002b60| 4d 5f 53 54 41 43 4b 5f | 53 49 5a 45 7b 2a 6c 69 |M_STACK_|SIZE{*li|
|00002b70| 73 74 68 65 61 64 2e 64 | 6c 6c 68 65 61 64 2c 6d |sthead.d|llhead,m|
|00002b80| 61 78 70 75 73 68 65 73 | 2e 6c 7d 00 80 1e 00 80 |axpushes|.l}.....|
|00002b90| 09 2e 62 20 49 54 45 4d | 5f 53 54 41 43 4b 5f 53 |..b ITEM|_STACK_S|
|00002ba0| 49 5a 45 7b 2a 6c 69 73 | 74 68 65 61 64 2e 64 6c |IZE{*lis|thead.dl|
|00002bb0| 6c 68 65 61 64 2c 6d 61 | 78 70 75 73 68 65 73 2e |lhead,ma|xpushes.|
|00002bc0| 6c 7d 00 80 1f 00 20 20 | 3b 73 65 74 20 61 20 73 |l}.... |;set a s|
|00002bd0| 74 61 63 6b 20 66 6f 72 | 20 6c 69 73 74 20 69 74 |tack for| list it|
|00002be0| 65 6d 73 20 74 6f 20 62 | 65 20 75 73 65 64 20 66 |ems to b|e used f|
|00002bf0| 6f 72 20 50 55 53 48 2f | 50 4f 50 20 49 54 45 4d |or PUSH/|POP ITEM|
|00002c00| 00 00 20 20 73 74 61 63 | 6b 73 74 61 72 74 2e 6c |.. stac|kstart.l|
|00002c10| 3d 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 73 |=*listhe|ad\dll_s|
|00002c20| 74 61 63 6b 73 74 61 72 | 74 00 20 20 80 0b 20 73 |tackstar|t. .. s|
|00002c30| 74 61 63 6b 73 74 61 72 | 74 3c 3e 30 00 20 20 20 |tackstar|t<>0. |
|00002c40| 20 a6 09 20 73 74 61 63 | 6b 73 74 61 72 74 2c 47 | .. stac|kstart,G|
|00002c50| 45 54 5f 41 4c 4c 4f 43 | 41 54 45 44 5f 53 49 5a |ET_ALLOC|ATED_SIZ|
|00002c60| 45 7b 73 74 61 63 6b 73 | 74 61 72 74 7d 00 20 20 |E{stacks|tart}. |
|00002c70| 80 c0 00 20 20 73 74 61 | 63 6b 73 69 7a 65 2e 6c |... sta|cksize.l|
|00002c80| 3d 6d 61 78 70 75 73 68 | 65 73 2a 34 3a 73 74 61 |=maxpush|es*4:sta|
|00002c90| 63 6b 73 74 61 72 74 2e | 6c 3d a6 08 28 73 74 61 |ckstart.|l=..(sta|
|00002ca0| 63 6b 73 69 7a 65 2c 30 | 29 00 20 20 2a 6c 69 73 |cksize,0|). *lis|
|00002cb0| 74 68 65 61 64 5c 64 6c | 6c 5f 73 74 61 63 6b 73 |thead\dl|l_stacks|
|00002cc0| 74 61 72 74 3d 73 74 61 | 63 6b 73 74 61 72 74 2c |tart=sta|ckstart,|
|00002cd0| 73 74 61 63 6b 73 74 61 | 72 74 2c 73 74 61 63 6b |stacksta|rt,stack|
|00002ce0| 73 74 61 72 74 2b 73 74 | 61 63 6b 73 69 7a 65 00 |start+st|acksize.|
|00002cf0| 20 20 80 0b 20 73 74 61 | 63 6b 73 74 61 72 74 20 | .. sta|ckstart |
|00002d00| 3d 20 30 00 80 1c 20 23 | 44 4c 4c 5f 54 52 41 50 |= 0... #|DLL_TRAP|
|00002d10| 5f 45 52 52 4f 52 53 00 | 20 20 20 20 46 61 74 61 |_ERRORS.| Fata|
|00002d20| 6c 5f 45 72 72 6f 72 7b | 22 43 6f 75 6c 64 20 6e |l_Error{|"Could n|
|00002d30| 6f 74 20 73 65 74 20 44 | 4c 4c 20 73 74 61 63 6b |ot set D|LL stack|
|00002d40| 20 73 69 7a 65 20 74 6f | 20 22 20 2b 20 dd 86 28 | size to| " + ..(|
|00002d50| 6d 61 78 70 75 73 68 65 | 73 29 7d 00 20 20 80 c0 |maxpushe|s)}. ..|
|00002d60| 00 80 02 20 80 08 00 80 | 1e 00 20 20 20 20 80 09 |... ....|.. ..|
|00002d70| 20 80 07 20 23 44 4c 4c | 5f 46 61 6c 73 65 00 20 | .. #DLL|_False. |
|00002d80| 20 80 22 00 20 20 20 20 | 80 09 20 80 07 20 23 44 | .". |.. .. #D|
|00002d90| 4c 4c 5f 54 72 75 65 00 | 20 20 80 c0 00 80 02 20 |LL_True.| ..... |
|00002da0| 80 09 00 80 1f 00 00 80 | 09 2e 6c 20 49 4e 49 54 |........|..l INIT|
|00002db0| 5f 4c 49 53 54 7b 2a 6c | 69 73 74 69 74 65 6d 2e |_LIST{*l|istitem.|
|00002dc0| 64 6c 6c 2c 73 69 7a 65 | 2e 6c 7d 00 20 20 3b 74 |dll,size|.l}. ;t|
|00002dd0| 68 65 20 6c 69 73 74 69 | 74 65 6d 20 69 73 20 74 |he listi|tem is t|
|00002de0| 68 65 20 63 75 72 72 65 | 6e 74 20 69 74 65 6d 20 |he curre|nt item |
|00002df0| 68 6f 6c 64 65 72 2e 2e | 2e 00 20 20 3b 72 65 74 |holder..|.. ;ret|
|00002e00| 75 72 6e 73 20 74 68 65 | 20 6c 69 73 74 68 65 61 |urns the| listhea|
|00002e10| 64 20 61 64 64 72 65 73 | 73 00 00 20 20 80 0b 20 |d addres|s.. .. |
|00002e20| 2a 6c 69 73 74 69 74 65 | 6d 5c 64 6c 6c 5f 6e 65 |*listite|m\dll_ne|
|00002e30| 78 74 3d 30 00 20 20 20 | 20 6d 65 6d 2e 6c 3d a6 |xt=0. | mem.l=.|
|00002e40| 08 28 28 73 69 7a 65 2b | 80 2f 20 2e 64 6c 6c 68 |.((size+|./ .dllh|
|00002e50| 65 61 64 29 2c 24 31 30 | 30 30 30 29 00 20 20 20 |ead),$10|000). |
|00002e60| 20 80 0b 20 6d 65 6d 3c | 3e 30 00 20 20 20 20 20 | .. mem<|>0. |
|00002e70| 20 2a 74 6d 70 68 65 61 | 64 2e 64 6c 6c 68 65 61 | *tmphea|d.dllhea|
|00002e80| 64 3d 6d 65 6d 2b 34 3a | 44 4c 4c 5f 4c 4f 4b 45 |d=mem+4:|DLL_LOKE|
|00002e90| 7b 6d 65 6d 2c 30 7d 00 | 20 20 20 20 20 20 2a 74 |{mem,0}.| *t|
|00002ea0| 6d 70 68 65 61 64 5c 64 | 6c 6c 5f 6e 65 78 74 3d |mphead\d|ll_next=|
|00002eb0| 26 2a 74 6d 70 68 65 61 | 64 5c 64 6c 6c 5f 74 61 |&*tmphea|d\dll_ta|
|00002ec0| 69 6c 2c 30 2c 2a 74 6d | 70 68 65 61 64 00 20 20 |il,0,*tm|phead. |
|00002ed0| 20 20 20 20 2a 74 6d 70 | 68 65 61 64 5c 64 6c 6c | *tmp|head\dll|
|00002ee0| 5f 66 72 65 65 6e 65 78 | 74 3d 26 2a 74 6d 70 68 |_freenex|t=&*tmph|
|00002ef0| 65 61 64 5c 64 6c 6c 5f | 66 72 65 65 74 61 69 6c |ead\dll_|freetail|
|00002f00| 2c 30 2c 26 2a 74 6d 70 | 68 65 61 64 5c 64 6c 6c |,0,&*tmp|head\dll|
|00002f10| 5f 66 72 65 65 6e 65 78 | 74 00 20 20 20 20 20 20 |_freenex|t. |
|00002f20| 2a 74 6d 70 68 65 61 64 | 5c 64 6c 6c 5f 62 6c 69 |*tmphead|\dll_bli|
|00002f30| 74 7a 6c 69 73 74 3d 24 | 36 43 34 39 37 33 35 34 |tzlist=$|6C497354|
|00002f40| 2c 2a 6c 69 73 74 69 74 | 65 6d 2c 30 2c 30 2c 30 |,*listit|em,0,0,0|
|00002f50| 2c 30 2c 30 00 80 1c 20 | 23 44 4c 4c 5f 54 52 41 |,0,0... |#DLL_TRA|
|00002f60| 50 5f 45 52 52 4f 52 53 | 00 20 20 20 20 20 20 49 |P_ERRORS|. I|
|00002f70| 54 45 4d 5f 53 54 41 43 | 4b 5f 53 49 5a 45 7b 2a |TEM_STAC|K_SIZE{*|
|00002f80| 74 6d 70 68 65 61 64 2c | 23 44 45 46 41 55 4c 54 |tmphead,|#DEFAULT|
|00002f90| 5f 49 54 45 4d 5f 53 54 | 41 43 4b 5f 53 49 5a 45 |_ITEM_ST|ACK_SIZE|
|00002fa0| 7d 00 20 20 20 20 20 20 | 41 44 44 5f 49 54 45 4d |}. |ADD_ITEM|
|00002fb0| 7b 2a 74 6d 70 68 65 61 | 64 2c 73 69 7a 65 7d 00 |{*tmphea|d,size}.|
|00002fc0| 20 20 20 20 20 20 80 09 | 20 80 07 20 2a 74 6d 70 | ..| .. *tmp|
|00002fd0| 68 65 61 64 00 20 20 20 | 20 80 22 00 20 20 20 20 |head. | .". |
|00002fe0| 20 20 46 61 74 61 6c 5f | 45 72 72 6f 72 7b 22 43 | Fatal_|Error{"C|
|00002ff0| 6f 75 6c 64 20 6e 6f 74 | 20 49 6e 69 74 20 4c 69 |ould not| Init Li|
|00003000| 73 74 22 7d 00 20 20 20 | 20 80 c0 00 20 20 80 22 |st"}. | ... ."|
|00003010| 00 20 20 20 20 46 61 74 | 61 6c 5f 45 72 72 6f 72 |. Fat|al_Error|
|00003020| 7b 22 43 6f 75 6c 64 20 | 6e 6f 74 20 49 6e 69 74 |{"Could |not Init|
|00003030| 20 4c 69 73 74 22 7d 00 | 80 1e 00 20 20 20 20 20 | List"}.|... |
|00003040| 20 80 0b 20 49 54 45 4d | 5f 53 54 41 43 4b 5f 53 | .. ITEM|_STACK_S|
|00003050| 49 5a 45 7b 2a 74 6d 70 | 68 65 61 64 2c 23 44 45 |IZE{*tmp|head,#DE|
|00003060| 46 41 55 4c 54 5f 49 54 | 45 4d 5f 53 54 41 43 4b |FAULT_IT|EM_STACK|
|00003070| 5f 53 49 5a 45 7d 3d 23 | 44 4c 4c 5f 54 72 75 65 |_SIZE}=#|DLL_True|
|00003080| 00 20 20 20 20 20 20 20 | 20 80 0b 20 41 44 44 5f |. | .. ADD_|
|00003090| 49 54 45 4d 7b 2a 74 6d | 70 68 65 61 64 2c 73 69 |ITEM{*tm|phead,si|
|000030a0| 7a 65 7d 00 20 20 20 20 | 20 20 20 20 20 20 80 09 |ze}. | ..|
|000030b0| 20 80 07 20 2a 74 6d 70 | 68 65 61 64 00 20 20 20 | .. *tmp|head. |
|000030c0| 20 20 20 20 20 80 22 00 | 20 20 20 20 20 20 20 20 | .".| |
|000030d0| 20 20 73 74 61 63 6b 73 | 74 61 72 74 2e 6c 3d 2a | stacks|tart.l=*|
|000030e0| 74 6d 70 68 65 61 64 5c | 64 6c 6c 5f 73 74 61 63 |tmphead\|dll_stac|
|000030f0| 6b 73 74 61 72 74 3a a6 | 09 20 73 74 61 63 6b 73 |kstart:.|. stacks|
|00003100| 74 61 72 74 2c 47 45 54 | 5f 41 4c 4c 4f 43 41 54 |tart,GET|_ALLOCAT|
|00003110| 45 44 5f 53 49 5a 45 7b | 73 74 61 63 6b 73 74 61 |ED_SIZE{|stacksta|
|00003120| 72 74 7d 00 20 20 20 20 | 20 20 20 20 20 20 a6 09 |rt}. | ..|
|00003130| 20 6d 65 6d 2c 28 73 69 | 7a 65 2b 80 2f 20 2e 64 | mem,(si|ze+./ .d|
|00003140| 6c 6c 68 65 61 64 29 00 | 20 20 20 20 20 20 20 20 |llhead).| |
|00003150| 20 20 80 09 20 80 07 20 | 23 44 4c 4c 5f 46 61 6c | .. .. |#DLL_Fal|
|00003160| 73 65 00 20 20 20 20 20 | 20 20 20 80 c0 00 20 20 |se. | ... |
|00003170| 20 20 20 20 80 22 00 20 | 20 20 20 20 20 20 20 a6 | .". | .|
|00003180| 09 20 6d 65 6d 2c 28 73 | 69 7a 65 2b 80 2f 20 2e |. mem,(s|ize+./ .|
|00003190| 64 6c 6c 68 65 61 64 29 | 00 20 20 20 20 20 20 20 |dllhead)|. |
|000031a0| 20 80 09 20 80 07 20 23 | 44 4c 4c 5f 46 61 6c 73 | .. .. #|DLL_Fals|
|000031b0| 65 00 20 20 20 20 20 20 | 80 c0 00 20 20 20 20 20 |e. |... |
|000031c0| 20 80 09 20 80 07 20 23 | 44 4c 4c 5f 46 61 6c 73 | .. .. #|DLL_Fals|
|000031d0| 65 00 20 20 20 20 80 c0 | 00 20 20 80 22 00 20 20 |e. ..|. .". |
|000031e0| 20 20 80 09 20 80 07 20 | 23 44 4c 4c 5f 46 61 6c | .. .. |#DLL_Fal|
|000031f0| 73 65 00 80 1f 00 20 20 | 80 c0 00 00 80 02 20 80 |se.... |...... .|
|00003200| 09 00 00 80 08 20 53 45 | 54 5f 53 54 52 49 4e 47 |..... SE|T_STRING|
|00003210| 5f 50 4f 53 49 54 49 4f | 4e 53 7b 2a 6c 69 73 74 |_POSITIO|NS{*list|
|00003220| 68 65 61 64 2e 64 6c 6c | 68 65 61 64 7d 00 20 20 |head.dll|head}. |
|00003230| 3b 6d 75 73 74 20 62 65 | 20 63 61 6c 6c 65 64 20 |;must be| called |
|00003240| 61 66 74 65 72 20 66 69 | 72 73 74 20 49 4e 49 54 |after fi|rst INIT|
|00003250| 20 6f 66 20 61 20 6c 69 | 73 74 20 68 65 61 64 65 | of a li|st heade|
|00003260| 72 2c 20 61 6e 64 20 61 | 20 73 69 6e 67 6c 65 00 |r, and a| single.|
|00003270| 20 20 3b 69 74 65 6d 20 | 77 61 73 20 61 64 64 65 | ;item |was adde|
|00003280| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |d automa|tically |
|00003290| 66 6f 72 20 79 6f 75 20 | 62 79 20 69 6e 69 74 20 |for you |by init |
|000032a0| 73 6f 20 79 6f 75 20 6d | 75 73 74 20 73 65 74 00 |so you m|ust set.|
|000032b0| 20 20 3b 61 6c 6c 20 6e | 6f 6e 20 73 74 72 69 6e | ;all n|on strin|
|000032c0| 67 20 6f 66 20 74 68 61 | 74 20 69 74 65 6d 20 69 |g of tha|t item i|
|000032d0| 6e 20 79 6f 75 72 20 6c | 69 73 74 20 74 6f 20 2d |n your l|ist to -|
|000032e0| 31 2c 20 61 6e 64 20 61 | 6c 6c 20 73 74 72 69 6e |1, and a|ll strin|
|000032f0| 67 73 20 74 6f 20 22 22 | 00 00 20 20 2a 63 75 72 |gs to ""|.. *cur|
|00003300| 69 74 65 6d 2e 64 6c 6c | 3d 2a 6c 69 73 74 68 65 |item.dll|=*listhe|
|00003310| 61 64 5c 64 6c 6c 5f 63 | 75 72 72 65 6e 74 5c 64 |ad\dll_c|urrent\d|
|00003320| 6c 6c 5f 6e 65 78 74 00 | 20 20 80 0b 20 28 2a 63 |ll_next.| .. (*c|
|00003330| 75 72 69 74 65 6d 3c 3e | 30 29 26 28 28 2a 63 75 |uritem<>|0)&((*cu|
|00003340| 72 69 74 65 6d 5c 64 6c | 6c 5f 6e 65 78 74 3c 3e |ritem\dl|l_next<>|
|00003350| 30 29 26 28 2a 63 75 72 | 69 74 65 6d 5c 64 6c 6c |0)&(*cur|item\dll|
|00003360| 5f 70 72 65 76 3c 3e 30 | 29 29 00 20 20 20 20 69 |_prev<>0|)). i|
|00003370| 74 65 6d 73 69 7a 65 2e | 6c 3d 47 45 54 5f 41 4c |temsize.|l=GET_AL|
|00003380| 4c 4f 43 41 54 45 44 5f | 53 49 5a 45 7b 2a 63 75 |LOCATED_|SIZE{*cu|
|00003390| 72 69 74 65 6d 7d 3a 73 | 74 72 73 74 61 72 74 2e |ritem}:s|trstart.|
|000033a0| 6c 3d 26 2a 6c 69 73 74 | 68 65 61 64 5c 64 6c 6c |l=&*list|head\dll|
|000033b0| 5f 66 69 72 73 74 73 74 | 72 69 6e 67 00 20 20 20 |_firstst|ring. |
|000033c0| 20 53 45 45 4b 5f 53 54 | 52 49 4e 47 53 7b 2a 63 | SEEK_ST|RINGS{*c|
|000033d0| 75 72 69 74 65 6d 2c 80 | 2f 20 2e 64 6c 6c 2c 69 |uritem,.|/ .dll,i|
|000033e0| 74 65 6d 73 69 7a 65 2c | 73 74 72 73 74 61 72 74 |temsize,|strstart|
|000033f0| 7d 3a 4b 49 4c 4c 5f 49 | 54 45 4d 7b 2a 6c 69 73 |}:KILL_I|TEM{*lis|
|00003400| 74 68 65 61 64 7d 00 20 | 20 80 c0 00 80 02 20 80 |thead}. | ..... .|
|00003410| 08 00 00 80 09 2e 62 20 | 50 52 45 56 5f 49 54 45 |......b |PREV_ITE|
|00003420| 4d 7b 2a 6c 69 73 74 68 | 65 61 64 2e 64 6c 6c 68 |M{*listh|ead.dllh|
|00003430| 65 61 64 7d 00 20 20 3b | 6d 6f 76 65 20 74 6f 20 |ead}. ;|move to |
|00003440| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 69 74 65 |the prev|ious ite|
|00003450| 6d 20 69 6e 20 74 68 65 | 20 6c 69 73 74 20 69 66 |m in the| list if|
|00003460| 20 70 6f 73 73 69 62 6c | 65 00 20 20 3b 72 65 74 | possibl|e. ;ret|
|00003470| 75 72 6e 73 20 74 72 75 | 65 20 69 66 20 73 75 63 |urns tru|e if suc|
|00003480| 63 65 73 73 66 75 6c 20 | 61 6e 64 20 66 61 6c 73 |cessful |and fals|
|00003490| 65 20 69 66 20 6e 6f 74 | 2c 20 61 6e 64 20 6f 6e |e if not|, and on|
|000034a0| 6c 79 20 63 68 61 6e 67 | 65 73 20 74 6f 00 20 20 |ly chang|es to. |
|000034b0| 3b 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 69 74 |;the pre|vious it|
|000034c0| 65 6d 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |em if th|ere is a|
|000034d0| 63 74 75 61 6c 6c 79 20 | 61 20 70 72 65 76 69 6f |ctually |a previo|
|000034e0| 75 73 20 69 74 65 6d 20 | 69 6e 20 74 68 65 20 6c |us item |in the l|
|000034f0| 69 73 74 00 00 20 20 2a | 63 75 72 69 74 65 6d 2e |ist.. *|curitem.|
|00003500| 64 6c 6c 3d 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |dll=*lis|thead\dl|
|00003510| 6c 5f 63 75 72 72 65 6e | 74 5c 64 6c 6c 5f 6e 65 |l_curren|t\dll_ne|
|00003520| 78 74 3a 80 0b 20 2a 63 | 75 72 69 74 65 6d 3d 30 |xt:.. *c|uritem=0|
|00003530| 20 80 21 20 2a 63 75 72 | 69 74 65 6d 3d 2a 6c 69 | .! *cur|item=*li|
|00003540| 73 74 68 65 61 64 5c 64 | 6c 6c 5f 6e 65 78 74 00 |sthead\d|ll_next.|
|00003550| 20 20 2a 70 72 65 69 74 | 65 6d 2e 64 6c 6c 3d 2a | *preit|em.dll=*|
|00003560| 63 75 72 69 74 65 6d 5c | 64 6c 6c 5f 70 72 65 76 |curitem\|dll_prev|
|00003570| 00 20 20 80 0b 20 28 2a | 70 72 65 69 74 65 6d 5c |. .. (*|preitem\|
|00003580| 64 6c 6c 5f 6e 65 78 74 | 3c 3e 30 29 26 28 2a 70 |dll_next|<>0)&(*p|
|00003590| 72 65 69 74 65 6d 5c 64 | 6c 6c 5f 70 72 65 76 3c |reitem\d|ll_prev<|
|000035a0| 3e 30 29 00 20 20 20 20 | 53 45 54 5f 43 55 52 52 |>0). |SET_CURR|
|000035b0| 45 4e 54 5f 49 54 45 4d | 7b 2a 6c 69 73 74 68 65 |ENT_ITEM|{*listhe|
|000035c0| 61 64 2c 2a 70 72 65 69 | 74 65 6d 7d 00 20 20 20 |ad,*prei|tem}. |
|000035d0| 20 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 63 | *listhe|ad\dll_c|
|000035e0| 75 72 70 6f 73 20 2d 20 | 31 00 20 20 20 20 80 09 |urpos - |1. ..|
|000035f0| 20 80 07 20 23 44 4c 4c | 5f 54 72 75 65 00 20 20 | .. #DLL|_True. |
|00003600| 80 22 00 20 20 20 20 52 | 45 53 45 54 5f 4c 49 53 |.". R|ESET_LIS|
|00003610| 54 7b 2a 6c 69 73 74 68 | 65 61 64 7d 20 20 20 20 |T{*listh|ead} |
|00003620| 20 20 20 20 3b 00 20 20 | 20 20 80 09 20 80 07 20 | ;. | .. .. |
|00003630| 23 44 4c 4c 5f 46 61 6c | 73 65 00 20 20 80 c0 00 |#DLL_Fal|se. ...|
|00003640| 80 02 20 80 09 00 00 80 | 09 2e 62 20 4e 45 58 54 |.. .....|..b NEXT|
|00003650| 5f 49 54 45 4d 7b 2a 6c | 69 73 74 68 65 61 64 2e |_ITEM{*l|isthead.|
|00003660| 64 6c 6c 68 65 61 64 7d | 00 20 20 3b 6d 6f 76 65 |dllhead}|. ;move|
|00003670| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 20 69 74 65 | to the |next ite|
|00003680| 6d 20 69 6e 20 74 68 65 | 20 6c 69 73 74 20 69 66 |m in the| list if|
|00003690| 20 70 6f 73 73 69 62 6c | 65 00 20 20 3b 72 65 74 | possibl|e. ;ret|
|000036a0| 75 72 6e 73 20 74 72 75 | 65 20 69 66 20 73 75 63 |urns tru|e if suc|
|000036b0| 63 65 73 73 66 75 6c 20 | 61 6e 64 20 66 61 6c 73 |cessful |and fals|
|000036c0| 65 20 69 66 20 6e 6f 74 | 2c 20 61 6e 64 20 6f 6e |e if not|, and on|
|000036d0| 6c 79 20 63 68 61 6e 67 | 65 73 20 74 6f 20 74 68 |ly chang|es to th|
|000036e0| 65 00 20 20 3b 6e 65 78 | 74 20 69 74 65 6d 20 69 |e. ;nex|t item i|
|000036f0| 66 20 74 68 65 72 65 20 | 69 73 20 61 63 74 75 61 |f there |is actua|
|00003700| 6c 6c 79 20 6e 65 78 74 | 20 69 74 65 6d 20 69 6e |lly next| item in|
|00003710| 20 74 68 65 20 6c 69 73 | 74 00 00 20 20 2a 63 75 | the lis|t.. *cu|
|00003720| 72 69 74 65 6d 2e 64 6c | 6c 3d 2a 6c 69 73 74 68 |ritem.dl|l=*listh|
|00003730| 65 61 64 5c 64 6c 6c 5f | 63 75 72 72 65 6e 74 5c |ead\dll_|current\|
|00003740| 64 6c 6c 5f 6e 65 78 74 | 3a 80 0b 20 2a 63 75 72 |dll_next|:.. *cur|
|00003750| 69 74 65 6d 3d 30 20 80 | 21 20 2a 63 75 72 69 74 |item=0 .|! *curit|
|00003760| 65 6d 3d 2a 6c 69 73 74 | 68 65 61 64 00 20 20 2a |em=*list|head. *|
|00003770| 70 6f 73 74 69 74 65 6d | 2e 64 6c 6c 3d 2a 63 75 |postitem|.dll=*cu|
|00003780| 72 69 74 65 6d 5c 64 6c | 6c 5f 6e 65 78 74 00 20 |ritem\dl|l_next. |
|00003790| 20 80 0b 20 28 2a 70 6f | 73 74 69 74 65 6d 5c 64 | .. (*po|stitem\d|
|000037a0| 6c 6c 5f 6e 65 78 74 3c | 3e 30 29 26 28 2a 70 6f |ll_next<|>0)&(*po|
|000037b0| 73 74 69 74 65 6d 5c 64 | 6c 6c 5f 70 72 65 76 3c |stitem\d|ll_prev<|
|000037c0| 3e 30 29 00 20 20 20 20 | 53 45 54 5f 43 55 52 52 |>0). |SET_CURR|
|000037d0| 45 4e 54 5f 49 54 45 4d | 7b 2a 6c 69 73 74 68 65 |ENT_ITEM|{*listhe|
|000037e0| 61 64 2c 2a 70 6f 73 74 | 69 74 65 6d 7d 00 20 20 |ad,*post|item}. |
|000037f0| 20 20 2a 6c 69 73 74 68 | 65 61 64 5c 64 6c 6c 5f | *listh|ead\dll_|
|00003800| 63 75 72 70 6f 73 20 2b | 20 31 00 20 20 20 20 80 |curpos +| 1. .|
|00003810| 09 20 80 07 20 23 44 4c | 4c 5f 54 72 75 65 00 20 |. .. #DL|L_True. |
|00003820| 20 80 22 00 20 20 20 20 | 80 09 20 80 07 20 23 44 | .". |.. .. #D|
|00003830| 4c 4c 5f 46 61 6c 73 65 | 00 20 20 80 c0 00 80 02 |LL_False|. .....|
|00003840| 20 80 09 00 00 80 08 20 | 52 45 53 45 54 5f 4c 49 | ...... |RESET_LI|
|00003850| 53 54 5f 50 4f 53 7b 2a | 6c 69 73 74 68 65 61 64 |ST_POS{*|listhead|
|00003860| 2e 64 6c 6c 68 65 61 64 | 7d 00 20 20 3b 72 65 73 |.dllhead|}. ;res|
|00003870| 65 74 73 20 74 68 65 20 | 70 6f 73 69 74 69 6f 6e |ets the |position|
|00003880| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 | in the |list of |
|00003890| 74 68 65 20 63 75 72 72 | 65 6e 74 20 69 74 65 6d |the curr|ent item|
|000038a0| 20 28 69 65 2c 20 73 65 | 61 72 63 68 20 66 72 6f | (ie, se|arch fro|
|000038b0| 6d 20 68 65 61 64 29 00 | 20 20 3b 64 6f 65 73 6e |m head).| ;doesn|
|000038c0| 27 74 20 63 68 61 6e 67 | 65 20 74 68 65 20 63 75 |'t chang|e the cu|
|000038d0| 72 72 65 6e 74 20 69 74 | 65 6d 20 70 6f 73 69 74 |rrent it|em posit|
|000038e0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 6c 69 73 74 20 |ion of t|he list |
|000038f0| 28 73 74 61 72 74 73 20 | 61 74 20 31 2e 2e 2e 29 |(starts |at 1...)|
|00003900| 00 00 20 20 20 2a 63 75 | 72 69 74 65 6d 2e 64 6c |.. *cu|ritem.dl|
|00003910| 6c 3d 2a 6c 69 73 74 68 | 65 61 64 5c 64 6c 6c 5f |l=*listh|ead\dll_|
|00003920| 63 75 72 72 65 6e 74 5c | 64 6c 6c 5f 6e 65 78 74 |current\|dll_next|
|00003930| 00 00 20 20 20 80 0b 20 | 2a 63 75 72 69 74 65 6d |.. .. |*curitem|
|00003940| 3c 3e 30 00 20 20 20 20 | 20 20 2a 6c 69 73 74 68 |<>0. | *listh|
|00003950| 65 61 64 5c 64 6c 6c 5f | 63 75 72 70 6f 73 3d 31 |ead\dll_|curpos=1|
|00003960| 00 20 20 20 20 20 20 2a | 74 6d 70 69 74 65 6d 2e |. *|tmpitem.|
|00003970| 64 6c 6c 3d 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |dll=*lis|thead\dl|
|00003980| 6c 5f 6e 65 78 74 00 20 | 20 20 20 20 20 80 0c 20 |l_next. | .. |
|00003990| 28 2a 63 75 72 69 74 65 | 6d 3c 3e 2a 74 6d 70 69 |(*curite|m<>*tmpi|
|000039a0| 74 65 6d 29 26 28 28 2a | 74 6d 70 69 74 65 6d 5c |tem)&((*|tmpitem\|
|000039b0| 64 6c 6c 5f 6e 65 78 74 | 3c 3e 30 29 26 28 2a 74 |dll_next|<>0)&(*t|
|000039c0| 6d 70 69 74 65 6d 5c 64 | 6c 6c 5f 70 72 65 76 3c |mpitem\d|ll_prev<|
|000039d0| 3e 30 29 29 00 20 20 20 | 20 20 20 20 20 20 2a 74 |>0)). | *t|
|000039e0| 6d 70 69 74 65 6d 3d 2a | 74 6d 70 69 74 65 6d 5c |mpitem=*|tmpitem\|
|000039f0| 64 6c 6c 5f 6e 65 78 74 | 00 20 20 20 20 20 20 20 |dll_next|. |
|00003a00| 20 20 2a 6c 69 73 74 68 | 65 61 64 5c 64 6c 6c 5f | *listh|ead\dll_|
|00003a10| 63 75 72 70 6f 73 20 2b | 20 31 00 20 20 20 20 20 |curpos +| 1. |
|00003a20| 20 80 c1 00 20 20 20 20 | 20 20 80 0b 20 28 2a 63 | ... | .. (*c|
|00003a30| 75 72 69 74 65 6d 3d 2a | 74 6d 70 69 74 65 6d 29 |uritem=*|tmpitem)|
|00003a40| 26 28 28 2a 74 6d 70 69 | 74 65 6d 5c 64 6c 6c 5f |&((*tmpi|tem\dll_|
|00003a50| 6e 65 78 74 3c 3e 30 29 | 26 28 2a 74 6d 70 69 74 |next<>0)|&(*tmpit|
|00003a60| 65 6d 5c 64 6c 6c 5f 70 | 72 65 76 3c 3e 30 29 29 |em\dll_p|rev<>0))|
|00003a70| 00 20 20 20 20 20 20 80 | 22 00 20 20 20 20 20 20 |. .|". |
|00003a80| 20 20 20 2a 6c 69 73 74 | 68 65 61 64 5c 64 6c 6c | *list|head\dll|
|00003a90| 5f 63 75 72 70 6f 73 20 | 3d 20 30 00 20 20 20 20 |_curpos |= 0. |
|00003aa0| 20 20 80 c0 00 20 20 20 | 80 22 00 20 20 20 20 20 | ... |.". |
|00003ab0| 20 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 63 | *listhe|ad\dll_c|
|00003ac0| 75 72 70 6f 73 20 3d 20 | 30 00 20 20 20 80 c0 00 |urpos = |0. ...|
|00003ad0| 00 80 02 20 80 08 00 00 | 80 09 2e 6c 20 47 45 54 |... ....|...l GET|
|00003ae0| 5f 4c 49 53 54 5f 50 4f | 53 7b 2a 6c 69 73 74 68 |_LIST_PO|S{*listh|
|00003af0| 65 61 64 2e 64 6c 6c 68 | 65 61 64 7d 00 20 20 3b |ead.dllh|ead}. ;|
|00003b00| 72 65 74 75 72 6e 20 74 | 68 65 20 70 6f 73 69 74 |return t|he posit|
|00003b10| 69 6f 6e 20 69 6e 20 74 | 68 65 20 6c 69 73 74 20 |ion in t|he list |
|00003b20| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 69 |of the c|urrent i|
|00003b30| 74 65 6d 20 28 69 65 2c | 20 73 65 61 72 63 68 20 |tem (ie,| search |
|00003b40| 66 72 6f 6d 20 68 65 61 | 64 29 00 20 20 3b 64 6f |from hea|d). ;do|
|00003b50| 65 73 6e 27 74 20 63 68 | 61 6e 67 65 20 74 68 65 |esn't ch|ange the|
|00003b60| 20 63 75 72 72 65 6e 74 | 20 69 74 65 6d 20 70 6f | current| item po|
|00003b70| 73 69 74 69 6f 6e 20 6f | 66 20 74 68 65 20 6c 69 |sition o|f the li|
|00003b80| 73 74 20 28 73 74 61 72 | 74 73 20 61 74 20 31 2e |st (star|ts at 1.|
|00003b90| 2e 2e 29 00 00 20 20 20 | 80 09 20 80 07 20 2a 6c |..).. |.. .. *l|
|00003ba0| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 63 75 72 70 |isthead\|dll_curp|
|00003bb0| 6f 73 00 00 80 02 20 80 | 09 00 00 80 1c 20 23 44 |os.... .|..... #D|
|00003bc0| 4c 4c 5f 54 52 41 50 5f | 45 52 52 4f 52 53 00 80 |LL_TRAP_|ERRORS..|
|00003bd0| 08 20 53 45 54 5f 4c 49 | 53 54 5f 50 4f 53 7b 2a |. SET_LI|ST_POS{*|
|00003be0| 6c 69 73 74 68 65 61 64 | 2e 64 6c 6c 68 65 61 64 |listhead|.dllhead|
|00003bf0| 2c 6c 69 73 74 70 6f 73 | 2e 6c 7d 00 80 1e 00 80 |,listpos|.l}.....|
|00003c00| 09 2e 62 20 53 45 54 5f | 4c 49 53 54 5f 50 4f 53 |..b SET_|LIST_POS|
|00003c10| 7b 2a 6c 69 73 74 68 65 | 61 64 2e 64 6c 6c 68 65 |{*listhe|ad.dllhe|
|00003c20| 61 64 2c 6c 69 73 74 70 | 6f 73 2e 6c 7d 00 80 1f |ad,listp|os.l}...|
|00003c30| 00 20 20 3b 73 65 74 20 | 74 68 65 20 63 75 72 72 |. ;set |the curr|
|00003c40| 65 6e 74 20 69 74 65 6d | 20 74 6f 20 74 68 65 20 |ent item| to the |
|00003c50| 70 6f 73 69 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |position| in the |
|00003c60| 6c 69 73 74 20 73 70 65 | 63 69 66 69 65 64 00 20 |list spe|cified. |
|00003c70| 20 3b 64 6f 65 73 6e 27 | 74 20 63 68 61 6e 67 65 | ;doesn'|t change|
|00003c80| 20 74 68 65 20 6c 69 73 | 74 20 70 6f 73 69 74 69 | the lis|t positi|
|00003c90| 6f 6e 20 28 73 74 61 72 | 74 73 20 61 74 20 31 2e |on (star|ts at 1.|
|00003ca0| 2e 2e 29 00 00 20 20 20 | 80 0b 20 6c 69 73 74 70 |..).. |.. listp|
|00003cb0| 6f 73 20 3c 3e 20 2a 6c | 69 73 74 68 65 61 64 5c |os <> *l|isthead\|
|00003cc0| 64 6c 6c 5f 63 75 72 70 | 6f 73 20 20 20 20 20 3b |dll_curp|os ;|
|00003cd0| 20 6e 65 65 64 20 77 65 | 20 67 6f 20 61 6e 79 77 | need we| go anyw|
|00003ce0| 68 65 72 65 3f 00 20 20 | 20 20 20 20 80 0b 20 6c |here?. | .. l|
|00003cf0| 69 73 74 70 6f 73 20 3c | 20 31 20 80 8a 20 6c 69 |istpos <| 1 .. li|
|00003d00| 73 74 70 6f 73 20 3e 20 | 2a 6c 69 73 74 68 65 61 |stpos > |*listhea|
|00003d10| 64 5c 64 6c 6c 5f 69 74 | 65 6d 73 69 6e 6c 69 73 |d\dll_it|emsinlis|
|00003d20| 74 00 80 1c 20 23 44 4c | 4c 5f 54 52 41 50 5f 45 |t... #DL|L_TRAP_E|
|00003d30| 52 52 4f 52 53 00 20 20 | 20 20 20 20 20 20 20 46 |RRORS. | F|
|00003d40| 61 74 61 6c 5f 45 72 72 | 6f 72 7b 22 43 6f 75 6c |atal_Err|or{"Coul|
|00003d50| 64 20 6e 6f 74 20 73 65 | 74 20 44 4c 4c 20 70 6f |d not se|t DLL po|
|00003d60| 73 69 74 69 6f 6e 20 74 | 6f 20 22 20 2b 20 dd 86 |sition t|o " + ..|
|00003d70| 28 6c 69 73 74 70 6f 73 | 29 7d 00 80 1e 00 20 20 |(listpos|)}.... |
|00003d80| 20 20 20 20 20 20 20 80 | 09 20 80 07 20 23 44 4c | .|. .. #DL|
|00003d90| 4c 5f 46 61 6c 73 65 00 | 80 1f 00 20 20 20 20 20 |L_False.|... |
|00003da0| 20 80 c0 00 20 20 20 20 | 20 20 80 0b 20 6c 69 73 | ... | .. lis|
|00003db0| 74 70 6f 73 20 3c 20 2a | 6c 69 73 74 68 65 61 64 |tpos < *|listhead|
|00003dc0| 5c 64 6c 6c 5f 63 75 72 | 70 6f 73 20 20 20 20 20 |\dll_cur|pos |
|00003dd0| 20 20 20 3b 00 20 20 20 | 20 20 20 20 20 20 80 0b | ;. | ..|
|00003de0| 20 6c 69 73 74 70 6f 73 | 20 3c 20 2a 6c 69 73 74 | listpos| < *list|
|00003df0| 68 65 61 64 5c 64 6c 6c | 5f 63 75 72 70 6f 73 20 |head\dll|_curpos |
|00003e00| 2d 20 6c 69 73 74 70 6f | 73 00 20 20 20 20 20 20 |- listpo|s. |
|00003e10| 20 20 20 20 20 20 2a 74 | 6d 70 69 74 65 6d 2e 64 | *t|mpitem.d|
|00003e20| 6c 6c 20 3d 20 2a 6c 69 | 73 74 68 65 61 64 5c 64 |ll = *li|sthead\d|
|00003e30| 6c 6c 5f 6e 65 78 74 00 | 20 20 20 20 20 20 20 20 |ll_next.| |
|00003e40| 20 20 20 20 80 16 20 2a | 6c 69 73 74 68 65 61 64 | .. *|listhead|
|00003e50| 5c 64 6c 6c 5f 63 75 72 | 70 6f 73 20 3d 20 31 20 |\dll_cur|pos = 1 |
|00003e60| 80 18 20 6c 69 73 74 70 | 6f 73 20 2d 20 31 00 20 |.. listp|os - 1. |
|00003e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 74 | | *t|
|00003e80| 6d 70 69 74 65 6d 3d 2a | 74 6d 70 69 74 65 6d 5c |mpitem=*|tmpitem\|
|00003e90| 64 6c 6c 5f 6e 65 78 74 | 00 20 20 20 20 20 20 20 |dll_next|. |
|00003ea0| 20 20 20 20 20 80 17 00 | 20 20 20 20 20 20 20 20 | ...| |
|00003eb0| 20 80 22 00 20 20 20 20 | 20 20 20 20 20 20 20 20 | .". | |
|00003ec0| 2a 74 6d 70 69 74 65 6d | 2e 64 6c 6c 20 3d 20 2a |*tmpitem|.dll = *|
|00003ed0| 6c 69 73 74 68 65 61 64 | 5c 64 6c 6c 5f 63 75 72 |listhead|\dll_cur|
|00003ee0| 72 65 6e 74 5c 64 6c 6c | 5f 6e 65 78 74 3a 80 0b |rent\dll|_next:..|
|00003ef0| 20 2a 74 6d 70 69 74 65 | 6d 3d 30 20 80 21 20 2a | *tmpite|m=0 .! *|
|00003f00| 74 6d 70 69 74 65 6d 3d | 2a 6c 69 73 74 68 65 61 |tmpitem=|*listhea|
|00003f10| 64 00 20 20 20 20 20 20 | 20 20 20 20 20 20 80 16 |d. | ..|
|00003f20| 20 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 63 | *listhe|ad\dll_c|
|00003f30| 75 72 70 6f 73 20 3d 20 | 2a 6c 69 73 74 68 65 61 |urpos = |*listhea|
|00003f40| 64 5c 64 6c 6c 5f 63 75 | 72 70 6f 73 20 80 18 20 |d\dll_cu|rpos .. |
|00003f50| 6c 69 73 74 70 6f 73 20 | 2b 20 31 20 80 19 20 2d |listpos |+ 1 .. -|
|00003f60| 31 00 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1. | |
|00003f70| 20 2a 74 6d 70 69 74 65 | 6d 3d 2a 74 6d 70 69 74 | *tmpite|m=*tmpit|
|00003f80| 65 6d 5c 64 6c 6c 5f 70 | 72 65 76 00 20 20 20 20 |em\dll_p|rev. |
|00003f90| 20 20 20 20 20 20 20 20 | 80 17 00 20 20 20 20 20 | |... |
|00003fa0| 20 20 20 20 80 c0 00 20 | 20 20 20 20 20 80 22 00 | ... | .".|
|00003fb0| 20 20 20 20 20 20 20 20 | 20 80 0b 20 6c 69 73 74 | | .. list|
|00003fc0| 70 6f 73 20 2d 20 2a 6c | 69 73 74 68 65 61 64 5c |pos - *l|isthead\|
|00003fd0| 64 6c 6c 5f 63 75 72 70 | 6f 73 20 3c 20 2a 6c 69 |dll_curp|os < *li|
|00003fe0| 73 74 68 65 61 64 5c 64 | 6c 6c 5f 69 74 65 6d 73 |sthead\d|ll_items|
|00003ff0| 69 6e 6c 69 73 74 20 2d | 20 6c 69 73 74 70 6f 73 |inlist -| listpos|
|00004000| 00 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 74 6d |. | *tm|
|00004010| 70 69 74 65 6d 2e 64 6c | 6c 20 3d 20 2a 6c 69 73 |pitem.dl|l = *lis|
|00004020| 74 68 65 61 64 5c 64 6c | 6c 5f 63 75 72 72 65 6e |thead\dl|l_curren|
|00004030| 74 5c 64 6c 6c 5f 6e 65 | 78 74 3a 80 0b 20 2a 74 |t\dll_ne|xt:.. *t|
|00004040| 6d 70 69 74 65 6d 3d 30 | 20 80 21 20 2a 74 6d 70 |mpitem=0| .! *tmp|
|00004050| 69 74 65 6d 3d 2a 6c 69 | 73 74 68 65 61 64 00 20 |item=*li|sthead. |
|00004060| 20 20 20 20 20 20 20 20 | 20 20 20 80 16 20 2a 6c | | .. *l|
|00004070| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 63 75 72 70 |isthead\|dll_curp|
|00004080| 6f 73 20 3d 20 2a 6c 69 | 73 74 68 65 61 64 5c 64 |os = *li|sthead\d|
|00004090| 6c 6c 5f 63 75 72 70 6f | 73 20 80 18 20 6c 69 73 |ll_curpo|s .. lis|
|000040a0| 74 70 6f 73 20 2d 20 31 | 00 20 20 20 20 20 20 20 |tpos - 1|. |
|000040b0| 20 20 20 20 20 20 20 20 | 2a 74 6d 70 69 74 65 6d | |*tmpitem|
|000040c0| 3d 2a 74 6d 70 69 74 65 | 6d 5c 64 6c 6c 5f 6e 65 |=*tmpite|m\dll_ne|
|000040d0| 78 74 00 20 20 20 20 20 | 20 20 20 20 20 20 20 80 |xt. | .|
|000040e0| 17 00 20 20 20 20 20 20 | 20 20 20 80 22 00 20 20 |.. | .". |
|000040f0| 20 20 20 20 20 20 20 20 | 20 20 2a 74 6d 70 69 74 | | *tmpit|
|00004100| 65 6d 2e 64 6c 6c 3d 2a | 6c 69 73 74 68 65 61 64 |em.dll=*|listhead|
|00004110| 5c 64 6c 6c 5f 74 61 69 | 6c 70 72 65 76 00 20 20 |\dll_tai|lprev. |
|00004120| 20 20 20 20 20 20 20 20 | 20 20 80 16 20 2a 6c 69 | | .. *li|
|00004130| 73 74 68 65 61 64 5c 64 | 6c 6c 5f 63 75 72 70 6f |sthead\d|ll_curpo|
|00004140| 73 20 3d 20 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |s = *lis|thead\dl|
|00004150| 6c 5f 69 74 65 6d 73 69 | 6e 6c 69 73 74 20 80 18 |l_itemsi|nlist ..|
|00004160| 20 6c 69 73 74 70 6f 73 | 2b 31 20 80 19 20 2d 31 | listpos|+1 .. -1|
|00004170| 00 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004180| 2a 74 6d 70 69 74 65 6d | 3d 2a 74 6d 70 69 74 65 |*tmpitem|=*tmpite|
|00004190| 6d 5c 64 6c 6c 5f 70 72 | 65 76 00 20 20 20 20 20 |m\dll_pr|ev. |
|000041a0| 20 20 20 20 20 20 20 80 | 17 00 20 20 20 20 20 20 | .|.. |
|000041b0| 20 20 20 80 c0 00 20 20 | 20 20 20 20 80 c0 00 20 | ... | ... |
|000041c0| 20 20 20 20 20 53 45 54 | 5f 43 55 52 52 45 4e 54 | SET|_CURRENT|
|000041d0| 5f 49 54 45 4d 7b 2a 6c | 69 73 74 68 65 61 64 2c |_ITEM{*l|isthead,|
|000041e0| 2a 74 6d 70 69 74 65 6d | 7d 00 20 20 20 80 c0 00 |*tmpitem|}. ...|
|000041f0| 80 1c 20 23 44 4c 4c 5f | 54 52 41 50 5f 45 52 52 |.. #DLL_|TRAP_ERR|
|00004200| 4f 52 53 00 80 02 20 80 | 08 00 80 1e 00 20 20 20 |ORS... .|..... |
|00004210| 80 09 20 80 07 20 23 44 | 4c 4c 5f 54 72 75 65 00 |.. .. #D|LL_True.|
|00004220| 80 02 20 80 09 00 80 1f | 00 00 80 09 2e 6c 20 47 |.. .....|.....l G|
|00004230| 45 54 5f 4c 49 53 54 5f | 53 49 5a 45 7b 2a 6c 69 |ET_LIST_|SIZE{*li|
|00004240| 73 74 68 65 61 64 2e 64 | 6c 6c 68 65 61 64 7d 00 |sthead.d|llhead}.|
|00004250| 20 20 3b 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e | ;retur|ns the n|
|00004260| 75 6d 62 65 72 20 6f 66 | 20 65 6e 74 72 69 65 73 |umber of| entries|
|00004270| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 00 20 20 3b | in the |list. ;|
|00004280| 64 6f 65 73 6e 27 74 20 | 63 68 61 6e 67 65 20 74 |doesn't |change t|
|00004290| 68 65 20 63 75 72 72 65 | 6e 74 20 69 74 65 6d 20 |he curre|nt item |
|000042a0| 69 6e 20 74 68 65 20 6c | 69 73 74 20 65 69 74 68 |in the l|ist eith|
|000042b0| 65 72 00 00 20 20 80 09 | 20 80 07 20 2a 6c 69 73 |er.. ..| .. *lis|
|000042c0| 74 68 65 61 64 5c 64 6c | 6c 5f 69 74 65 6d 73 69 |thead\dl|l_itemsi|
|000042d0| 6e 6c 69 73 74 00 80 02 | 20 80 09 00 00 80 09 2e |nlist...| .......|
|000042e0| 6c 20 47 45 54 5f 43 55 | 52 52 45 4e 54 5f 49 54 |l GET_CU|RRENT_IT|
|000042f0| 45 4d 7b 2a 6c 69 73 74 | 68 65 61 64 2e 64 6c 6c |EM{*list|head.dll|
|00004300| 68 65 61 64 7d 00 20 20 | 3b 20 52 65 74 75 72 6e |head}. |; Return|
|00004310| 73 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |s the ad|dress of|
|00004320| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 69 74 65 | the cur|rent ite|
|00004330| 6d 00 20 20 3b 20 55 73 | 65 66 75 6c 20 77 68 65 |m. ; Us|eful whe|
|00004340| 6e 20 73 65 76 65 72 61 | 6c 20 6c 69 73 74 73 20 |n severa|l lists |
|00004350| 73 68 61 72 65 20 61 20 | 63 6f 6d 6d 6f 6e 20 70 |share a |common p|
|00004360| 72 6f 63 65 73 73 69 6e | 67 20 72 6f 75 74 69 6e |rocessin|g routin|
|00004370| 65 00 00 20 20 80 09 20 | 80 07 20 2a 6c 69 73 74 |e.. .. |.. *list|
|00004380| 68 65 61 64 5c 64 6c 6c | 5f 63 75 72 72 65 6e 74 |head\dll|_current|
|00004390| 5c 64 6c 6c 5f 6e 65 78 | 74 00 80 02 20 80 09 00 |\dll_nex|t... ...|
|000043a0| 00 80 08 20 50 55 53 48 | 5f 49 54 45 4d 7b 2a 6c |... PUSH|_ITEM{*l|
|000043b0| 69 73 74 68 65 61 64 2e | 64 6c 6c 68 65 61 64 7d |isthead.|dllhead}|
|000043c0| 00 20 20 3b 70 75 73 68 | 20 63 75 72 72 65 6e 74 |. ;push| current|
|000043d0| 20 69 74 65 6d 20 70 6f | 73 69 74 69 6f 6e 20 69 | item po|sition i|
|000043e0| 6e 20 6c 69 73 74 20 6f | 6e 74 6f 20 74 68 65 20 |n list o|nto the |
|000043f0| 6c 69 73 74 20 73 74 61 | 63 6b 20 69 66 20 72 6f |list sta|ck if ro|
|00004400| 6f 6d 20 66 6f 72 20 74 | 68 65 20 69 74 65 6d 00 |om for t|he item.|
|00004410| 00 20 20 2a 63 75 72 69 | 74 65 6d 2e 64 6c 6c 3d |. *curi|tem.dll=|
|00004420| 2a 6c 69 73 74 68 65 61 | 64 5c 64 6c 6c 5f 63 75 |*listhea|d\dll_cu|
|00004430| 72 72 65 6e 74 5c 64 6c | 6c 5f 6e 65 78 74 3a 73 |rrent\dl|l_next:s|
|00004440| 74 61 63 6b 70 6f 73 2e | 6c 3d 2a 6c 69 73 74 68 |tackpos.|l=*listh|
|00004450| 65 61 64 5c 64 6c 6c 5f | 73 74 61 63 6b 63 75 72 |ead\dll_|stackcur|
|00004460| 72 65 6e 74 00 20 20 80 | 0b 20 28 73 74 61 63 6b |rent. .|. (stack|
|00004470| 70 6f 73 3c 3e 30 29 26 | 28 28 73 74 61 63 6b 70 |pos<>0)&|((stackp|
|00004480| 6f 73 3e 3d 2a 6c 69 73 | 74 68 65 61 64 5c 64 6c |os>=*lis|thead\dl|
|00004490| 6c 5f 73 74 61 63 6b 73 | 74 61 72 74 29 26 28 73 |l_stacks|tart)&(s|
|000044a0| 74 61 63 6b 70 6f 73 3c | 2a 6c 69 73 74 68 65 61 |tackpos<|*listhea|
|000044b0| 64 5c 64 6c 6c 5f 73 74 | 61 63 6b 65 6e 64 29 29 |d\dll_st|ackend))|
|000044c0| 00 20 20 20 20 44 4c 4c | 5f 4c 4f 4b 45 7b 73 74 |. DLL|_LOKE{st|
|000044d0| 61 63 6b 70 6f 73 2c 2a | 63 75 72 69 74 65 6d 7d |ackpos,*|curitem}|
|000044e0| 3a 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 73 |:*listhe|ad\dll_s|
|000044f0| 74 61 63 6b 63 75 72 72 | 65 6e 74 3d 73 74 61 63 |tackcurr|ent=stac|
|00004500| 6b 70 6f 73 2b 34 00 20 | 20 80 c0 00 80 02 20 80 |kpos+4. | ..... .|
|00004510| 08 00 00 80 08 20 50 4f | 50 5f 49 54 45 4d 7b 2a |..... PO|P_ITEM{*|
|00004520| 6c 69 73 74 68 65 61 64 | 2e 64 6c 6c 68 65 61 64 |listhead|.dllhead|
|00004530| 7d 00 20 20 3b 70 6f 70 | 20 63 75 72 72 65 6e 74 |}. ;pop| current|
|00004540| 20 69 74 65 6d 20 70 6f | 73 69 74 69 6f 6e 20 69 | item po|sition i|
|00004550| 6e 20 6c 69 73 74 20 66 | 72 6f 6d 20 74 68 65 20 |n list f|rom the |
|00004560| 6c 69 73 74 20 73 74 61 | 63 6b 20 69 66 20 69 74 |list sta|ck if it|
|00004570| 65 6d 20 69 73 20 6f 6e | 20 74 68 65 20 73 74 61 |em is on| the sta|
|00004580| 63 6b 00 20 20 3b 72 65 | 73 65 74 73 20 74 68 65 |ck. ;re|sets the|
|00004590| 20 63 75 72 72 65 6e 74 | 20 6c 69 73 74 20 70 6f | current| list po|
|000045a0| 73 69 74 69 6f 6e 00 00 | 20 20 73 74 61 63 6b 70 |sition..| stackp|
|000045b0| 6f 73 2e 6c 3d 2a 6c 69 | 73 74 68 65 61 64 5c 64 |os.l=*li|sthead\d|
|000045c0| 6c 6c 5f 73 74 61 63 6b | 63 75 72 72 65 6e 74 00 |ll_stack|current.|
|000045d0| 20 20 80 0b 20 28 73 74 | 61 63 6b 70 6f 73 3c 3e | .. (st|ackpos<>|
|000045e0| 30 29 26 28 28 73 74 61 | 63 6b 70 6f 73 3e 2a 6c |0)&((sta|ckpos>*l|
|000045f0| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 73 74 61 63 |isthead\|dll_stac|
|00004600| 6b 73 74 61 72 74 29 26 | 28 73 74 61 63 6b 70 6f |kstart)&|(stackpo|
|00004610| 73 3c 3d 2a 6c 69 73 74 | 68 65 61 64 5c 64 6c 6c |s<=*list|head\dll|
|00004620| 5f 73 74 61 63 6b 65 6e | 64 29 29 00 20 20 20 20 |_stacken|d)). |
|00004630| 53 45 54 5f 43 55 52 52 | 45 4e 54 5f 49 54 45 4d |SET_CURR|ENT_ITEM|
|00004640| 7b 2a 6c 69 73 74 68 65 | 61 64 2c 44 4c 4c 5f 4c |{*listhe|ad,DLL_L|
|00004650| 45 45 4b 7b 73 74 61 63 | 6b 70 6f 73 2d 34 7d 7d |EEK{stac|kpos-4}}|
|00004660| 3a 2a 6c 69 73 74 68 65 | 61 64 5c 64 6c 6c 5f 73 |:*listhe|ad\dll_s|
|00004670| 74 61 63 6b 63 75 72 72 | 65 6e 74 3d 73 74 61 63 |tackcurr|ent=stac|
|00004680| 6b 70 6f 73 2d 34 00 20 | 20 80 c0 00 20 20 52 45 |kpos-4. | ... RE|
|00004690| 53 45 54 5f 4c 49 53 54 | 5f 50 4f 53 7b 2a 6c 69 |SET_LIST|_POS{*li|
|000046a0| 73 74 68 65 61 64 7d 00 | 80 02 20 80 08 00 00 80 |sthead}.|.. .....|
|000046b0| 08 20 53 4f 52 54 5f 4c | 49 53 54 5f 41 53 43 45 |. SORT_L|IST_ASCE|
|000046c0| 4e 44 49 4e 47 7b 2a 6c | 69 73 74 68 65 61 64 2e |NDING{*l|isthead.|
|000046d0| 64 6c 6c 2c 65 6e 74 72 | 79 70 61 74 68 2e 6c 2c |dll,entr|ypath.l,|
|000046e0| 76 61 72 74 79 70 65 2e | 6c 7d 00 20 20 20 2a 74 |vartype.|l}. *t|
|000046f0| 6d 70 69 74 65 6d 2e 64 | 6c 6c 3d 2a 6c 69 73 74 |mpitem.d|ll=*list|
|00004700| 68 65 61 64 5c 64 6c 6c | 5f 6e 65 78 74 00 20 20 |head\dll|_next. |
|00004710| 20 80 0c 20 28 2a 74 6d | 70 69 74 65 6d 5c 64 6c | .. (*tm|pitem\dl|
|00004720| 6c 5f 6e 65 78 74 3c 3e | 30 29 26 28 2a 74 6d 70 |l_next<>|0)&(*tmp|
|00004730| 69 74 65 6d 5c 64 6c 6c | 5f 70 72 65 76 3c 3e 30 |item\dll|_prev<>0|
|00004740| 29 00 20 20 20 20 20 20 | 2a 6e 78 74 69 74 65 6d |). |*nxtitem|
|00004750| 2e 64 6c 6c 3d 2a 74 6d | 70 69 74 65 6d 5c 64 6c |.dll=*tm|pitem\dl|
|00004760| 6c 5f 6e 65 78 74 00 20 | 20 20 20 20 20 2a 73 72 |l_next. | *sr|
|00004770| 74 69 74 65 6d 2e 64 6c | 6c 3d 2a 74 6d 70 69 74 |titem.dl|l=*tmpit|
|00004780| 65 6d 5c 64 6c 6c 5f 70 | 72 65 76 00 20 20 20 20 |em\dll_p|rev. |
|00004790| 20 20 52 45 4d 4f 56 45 | 5f 49 54 45 4d 7b 2a 74 | REMOVE|_ITEM{*t|
|000047a0| 6d 70 69 74 65 6d 7d 00 | 20 20 20 20 20 20 6e 6f |mpitem}.| no|
|000047b0| 74 64 6f 6e 65 2e 62 3d | 23 44 4c 4c 5f 54 72 75 |tdone.b=|#DLL_Tru|
|000047c0| 65 00 20 20 20 20 20 20 | 80 0c 20 28 2a 73 72 74 |e. |.. (*srt|
|000047d0| 69 74 65 6d 3c 3e 2a 6c | 69 73 74 68 65 61 64 29 |item<>*l|isthead)|
|000047e0| 20 26 20 6e 6f 74 64 6f | 6e 65 00 20 20 20 20 20 | & notdo|ne. |
|000047f0| 20 20 20 20 80 0b 20 43 | 4f 4d 50 41 52 45 5f 49 | .. C|OMPARE_I|
|00004800| 54 45 4d 53 7b 2a 73 72 | 74 69 74 65 6d 2c 2a 74 |TEMS{*sr|titem,*t|
|00004810| 6d 70 69 74 65 6d 2c 65 | 6e 74 72 79 70 61 74 68 |mpitem,e|ntrypath|
|00004820| 2c 76 61 72 74 79 70 65 | 7d 20 3d 20 2d 31 00 20 |,vartype|} = -1. |
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 2a 73 72 74 69 | | *srti|
|00004840| 74 65 6d 3d 2a 73 72 74 | 69 74 65 6d 5c 64 6c 6c |tem=*srt|item\dll|
|00004850| 5f 70 72 65 76 00 20 20 | 20 20 20 20 20 20 20 80 |_prev. | .|
|00004860| 22 00 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 6f |". | no|
|00004870| 74 64 6f 6e 65 3d 23 44 | 4c 4c 5f 46 61 6c 73 65 |tdone=#D|LL_False|
|00004880| 00 20 20 20 20 20 20 20 | 20 20 80 c0 00 20 20 20 |. | ... |
|00004890| 20 20 20 80 c1 00 20 20 | 20 20 20 20 49 4e 53 45 | ... | INSE|
|000048a0| 52 54 5f 49 54 45 4d 7b | 2a 73 72 74 69 74 65 6d |RT_ITEM{|*srtitem|
|000048b0| 2c 2a 74 6d 70 69 74 65 | 6d 7d 20 20 20 20 20 3b |,*tmpite|m} ;|
|000048c0| 69 6e 73 65 72 74 20 69 | 74 65 6d 20 2a 74 6d 70 |insert i|tem *tmp|
|000048d0| 6c 69 73 74 20 74 6f 20 | 2a 63 75 72 6c 69 73 74 |list to |*curlist|
|000048e0| 5c 64 6c 6c 5f 6e 65 78 | 74 20 70 6f 73 69 74 69 |\dll_nex|t positi|
|000048f0| 6f 6e 00 20 20 20 20 20 | 20 2a 74 6d 70 69 74 65 |on. | *tmpite|
|00004900| 6d 3d 2a 6e 78 74 69 74 | 65 6d 00 20 20 20 80 c1 |m=*nxtit|em. ..|
|00004910| 00 20 20 20 52 45 53 45 | 54 5f 4c 49 53 54 7b 2a |. RESE|T_LIST{*|
|00004920| 6c 69 73 74 68 65 61 64 | 7d 00 80 02 20 80 08 00 |listhead|}... ...|
|00004930| 00 80 08 20 53 4f 52 54 | 5f 4c 49 53 54 5f 44 45 |... SORT|_LIST_DE|
|00004940| 53 43 45 4e 44 49 4e 47 | 7b 2a 6c 69 73 74 68 65 |SCENDING|{*listhe|
|00004950| 61 64 2e 64 6c 6c 2c 65 | 6e 74 72 79 70 61 74 68 |ad.dll,e|ntrypath|
|00004960| 2e 6c 2c 76 61 72 74 79 | 70 65 2e 6c 7d 00 20 20 |.l,varty|pe.l}. |
|00004970| 20 2a 74 6d 70 69 74 65 | 6d 2e 64 6c 6c 3d 2a 6c | *tmpite|m.dll=*l|
|00004980| 69 73 74 68 65 61 64 5c | 64 6c 6c 5f 6e 65 78 74 |isthead\|dll_next|
|00004990| 00 20 20 20 80 0c 20 28 | 2a 74 6d 70 69 74 65 6d |. .. (|*tmpitem|
|000049a0| 5c 64 6c 6c 5f 6e 65 78 | 74 3c 3e 30 29 26 28 2a |\dll_nex|t<>0)&(*|
|000049b0| 74 6d 70 69 74 65 6d 5c | 64 6c 6c 5f 70 72 65 76 |tmpitem\|dll_prev|
|000049c0| 3c 3e 30 29 00 20 20 20 | 20 20 20 2a 6e 78 74 69 |<>0). | *nxti|
|000049d0| 74 65 6d 2e 64 6c 6c 3d | 2a 74 6d 70 69 74 65 6d |tem.dll=|*tmpitem|
|000049e0| 5c 64 6c 6c 5f 6e 65 78 | 74 00 20 20 20 20 20 20 |\dll_nex|t. |
|000049f0| 2a 73 72 74 69 74 65 6d | 2e 64 6c 6c 3d 2a 74 6d |*srtitem|.dll=*tm|
|00004a00| 70 69 74 65 6d 5c 64 6c | 6c 5f 70 72 65 76 00 20 |pitem\dl|l_prev. |
|00004a10| 20 20 20 20 20 52 45 4d | 4f 56 45 5f 49 54 45 4d | REM|OVE_ITEM|
|00004a20| 7b 2a 74 6d 70 69 74 65 | 6d 7d 00 20 20 20 20 20 |{*tmpite|m}. |
|00004a30| 20 6e 6f 74 64 6f 6e 65 | 2e 62 3d 23 44 4c 4c 5f | notdone|.b=#DLL_|
|00004a40| 54 72 75 65 00 20 20 20 | 20 20 20 80 0c 20 28 2a |True. | .. (*|
|00004a50| 73 72 74 69 74 65 6d 3c | 3e 2a 6c 69 73 74 68 65 |srtitem<|>*listhe|
|00004a60| 61 64 29 20 26 20 6e 6f | 74 64 6f 6e 65 00 20 20 |ad) & no|tdone. |
|00004a70| 20 20 20 20 20 20 20 80 | 0b 20 43 4f 4d 50 41 52 | .|. COMPAR|
|00004a80| 45 5f 49 54 45 4d 53 7b | 2a 73 72 74 69 74 65 6d |E_ITEMS{|*srtitem|
|00004a90| 2c 2a 74 6d 70 69 74 65 | 6d 2c 65 6e 74 72 79 70 |,*tmpite|m,entryp|
|00004aa0| 61 74 68 2c 76 61 72 74 | 79 70 65 7d 20 3d 20 31 |ath,vart|ype} = 1|
|00004ab0| 00 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 73 72 |. | *sr|
|00004ac0| 74 69 74 65 6d 3d 2a 73 | 72 74 69 74 65 6d 5c 64 |titem=*s|rtitem\d|
|00004ad0| 6c 6c 5f 70 72 65 76 00 | 20 20 20 20 20 20 20 20 |ll_prev.| |
|00004ae0| 20 80 22 00 20 20 20 20 | 20 20 20 20 20 20 20 20 | .". | |
|00004af0| 6e 6f 74 64 6f 6e 65 3d | 23 44 4c 4c 5f 46 61 6c |notdone=|#DLL_Fal|
|00004b00| 73 65 00 20 20 20 20 20 | 20 20 20 20 80 c0 00 20 |se. | ... |
|00004b10| 20 20 20 20 20 80 c1 00 | 20 20 20 20 20 20 49 4e | ...| IN|
|00004b20| 53 45 52 54 5f 49 54 45 | 4d 7b 2a 73 72 74 69 74 |SERT_ITE|M{*srtit|
|00004b30| 65 6d 2c 2a 74 6d 70 69 | 74 65 6d 7d 20 20 20 20 |em,*tmpi|tem} |
|00004b40| 20 3b 69 6e 73 65 72 74 | 20 69 74 65 6d 20 2a 74 | ;insert| item *t|
|00004b50| 6d 70 6c 69 73 74 20 74 | 6f 20 2a 63 75 72 6c 69 |mplist t|o *curli|
|00004b60| 73 74 5c 64 6c 6c 5f 6e | 65 78 74 20 70 6f 73 69 |st\dll_n|ext posi|
|00004b70| 74 69 6f 6e 00 20 20 20 | 20 20 20 2a 74 6d 70 69 |tion. | *tmpi|
|00004b80| 74 65 6d 3d 2a 6e 78 74 | 69 74 65 6d 00 20 20 20 |tem=*nxt|item. |
|00004b90| 80 c1 00 20 20 20 52 45 | 53 45 54 5f 4c 49 53 54 |... RE|SET_LIST|
|00004ba0| 7b 2a 6c 69 73 74 68 65 | 61 64 7d 00 80 02 20 80 |{*listhe|ad}... .|
|00004bb0| 08 00 00 80 08 20 53 54 | 52 49 4e 47 5f 53 4f 52 |..... ST|RING_SOR|
|00004bc0| 54 5f 41 53 43 45 4e 44 | 49 4e 47 7b 2a 6c 69 73 |T_ASCEND|ING{*lis|
|00004bd0| 74 68 65 61 64 2e 64 6c | 6c 2c 65 6e 74 72 79 70 |thead.dl|l,entryp|
|00004be0| 61 74 68 2e 6c 7d 00 20 | 20 20 2a 74 6d 70 69 74 |ath.l}. | *tmpit|
|00004bf0| 65 6d 2e 64 6c 6c 3d 2a | 6c 69 73 74 68 65 61 64 |em.dll=*|listhead|
|00004c00| 5c 64 6c 6c 5f 6e 65 78 | 74 00 20 20 20 80 0c 20 |\dll_nex|t. .. |
|00004c10| 28 2a 74 6d 70 69 74 65 | 6d 5c 64 6c 6c 5f 6e 65 |(*tmpite|m\dll_ne|
|00004c20| 78 74 3c 3e 30 29 26 28 | 2a 74 6d 70 69 74 65 6d |xt<>0)&(|*tmpitem|
|00004c30| 5c 64 6c 6c 5f 70 72 65 | 76 3c 3e 30 29 00 20 20 |\dll_pre|v<>0). |
|00004c40| 20 20 20 20 2a 6e 78 74 | 69 74 65 6d 2e 64 6c 6c | *nxt|item.dll|
|00004c50| 20 20 20 20 20 20 3d 20 | 2a 74 6d 70 69 74 65 6d | = |*tmpitem|
|00004c60| 5c 64 6c 6c 5f 6e 65 78 | 74 00 20 20 20 20 20 20 |\dll_nex|t. |
|00004c70| 2a 73 72 74 69 74 65 6d | 2e 64 6c 6c 20 20 20 20 |*srtitem|.dll |
|00004c80| 20 20 3d 20 2a 74 6d 70 | 69 74 65 6d 5c 64 6c 6c | = *tmp|item\dll|
|00004c90| 5f 70 72 65 76 00 20 20 | 20 20 20 20 2a 73 72 74 |_prev. | *srt|
|00004ca0| 69 74 65 6d 5c 64 6c 6c | 5f 6e 65 78 74 20 3d 20 |item\dll|_next = |
|00004cb0| 2a 6e 78 74 69 74 65 6d | 00 20 20 20 20 20 20 2a |*nxtitem|. *|
|00004cc0| 6e 78 74 69 74 65 6d 5c | 64 6c 6c 5f 70 72 65 76 |nxtitem\|dll_prev|
|00004cd0| 20 3d 20 2a 73 72 74 69 | 74 65 6d 00 20 20 20 20 | = *srti|tem. |
|00004ce0| 20 20 6e 6f 74 64 6f 6e | 65 2e 62 20 20 20 20 20 | notdon|e.b |
|00004cf0| 20 20 20 20 3d 20 23 44 | 4c 4c 5f 54 72 75 65 00 | = #D|LL_True.|
|00004d00| 20 20 20 20 20 20 80 0c | 20 28 2a 73 72 74 69 74 | ..| (*srtit|
|00004d10| 65 6d 20 3c 3e 20 2a 6c | 69 73 74 68 65 61 64 29 |em <> *l|isthead)|
|00004d20| 20 26 20 6e 6f 74 64 6f | 6e 65 00 20 20 20 20 20 | & notdo|ne. |
|00004d30| 20 20 20 20 80 0b 20 43 | 4f 4d 50 41 52 45 5f 53 | .. C|OMPARE_S|
|00004d40| 54 52 49 4e 47 53 7b 44 | 4c 4c 5f 4c 45 45 4b 7b |TRINGS{D|LL_LEEK{|
|00004d50| 2a 74 6d 70 69 74 65 6d | 2b 65 6e 74 72 79 70 61 |*tmpitem|+entrypa|
|00004d60| 74 68 7d 2c 44 4c 4c 5f | 4c 45 45 4b 7b 2a 73 72 |th},DLL_|LEEK{*sr|
|00004d70| 74 69 74 65 6d 2b 65 6e | 74 72 79 70 61 74 68 7d |titem+en|trypath}|
|00004d80| 7d 20 3c 20 30 00 20 20 | 20 20 20 20 20 20 20 20 |} < 0. | |
|00004d90| 20 20 2a 73 72 74 69 74 | 65 6d 3d 2a 73 72 74 69 | *srtit|em=*srti|
|00004da0| 74 65 6d 5c 64 6c 6c 5f | 70 72 65 76 00 20 20 20 |tem\dll_|prev. |
|00004db0| 20 20 20 20 20 20 80 22 | 00 20 20 20 20 20 20 20 | ."|. |
|00004dc0| 20 20 20 20 20 6e 6f 74 | 64 6f 6e 65 3d 23 44 4c | not|done=#DL|
|00004dd0| 4c 5f 46 61 6c 73 65 00 | 20 20 20 20 20 20 20 20 |L_False.| |
|00004de0| 20 80 c0 00 20 20 20 20 | 20 20 80 c1 00 20 20 20 | ... | ... |
|00004df0| 20 20 20 2a 74 6d 70 69 | 74 65 6d 5c 64 6c 6c 5f | *tmpi|tem\dll_|
|00004e00| 6e 65 78 74 20 20 3d 20 | 2a 73 72 74 69 74 65 6d |next = |*srtitem|
|00004e10| 5c 64 6c 6c 5f 6e 65 78 | 74 2c 2a 73 72 74 69 74 |\dll_nex|t,*srtit|
|00004e20| 65 6d 00 20 20 20 20 20 | 20 2a 73 72 74 69 74 65 |em. | *srtite|
|00004e30| 6d 5c 64 6c 6c 5f 6e 65 | 78 74 20 20 3d 20 2a 74 |m\dll_ne|xt = *t|
|00004e40| 6d 70 69 74 65 6d 00 20 | 20 20 20 20 20 2a 70 6f |mpitem. | *po|
|00004e50| 73 74 69 74 65 6d 2e 64 | 6c 6c 20 20 20 20 20 20 |stitem.d|ll |
|00004e60| 3d 20 2a 74 6d 70 69 74 | 65 6d 5c 64 6c 6c 5f 6e |= *tmpit|em\dll_n|
|00004e70| 65 78 74 00 20 20 20 20 | 20 20 2a 70 6f 73 74 69 |ext. | *posti|
|00004e80| 74 65 6d 5c 64 6c 6c 5f | 70 72 65 76 20 3d 20 2a |tem\dll_|prev = *|
|00004e90| 74 6d 70 69 74 65 6d 00 | 20 20 20 20 20 20 2a 74 |tmpitem.| *t|
|00004ea0| 6d 70 69 74 65 6d 20 20 | 20 20 20 20 20 20 20 20 |mpitem | |
|00004eb0| 20 3d 20 2a 6e 78 74 69 | 74 65 6d 00 20 20 20 80 | = *nxti|tem. .|
|00004ec0| c1 00 20 20 20 52 45 53 | 45 54 5f 4c 49 53 54 7b |.. RES|ET_LIST{|
|00004ed0| 2a 6c 69 73 74 68 65 61 | 64 7d 00 80 02 20 80 08 |*listhea|d}... ..|
|00004ee0| 00 00 80 08 20 53 54 52 | 49 4e 47 5f 53 4f 52 54 |.... STR|ING_SORT|
|00004ef0| 5f 44 45 53 43 45 4e 44 | 49 4e 47 7b 2a 6c 69 73 |_DESCEND|ING{*lis|
|00004f00| 74 68 65 61 64 2e 64 6c | 6c 2c 65 6e 74 72 79 70 |thead.dl|l,entryp|
|00004f10| 61 74 68 2e 6c 7d 00 20 | 20 20 2a 74 6d 70 69 74 |ath.l}. | *tmpit|
|00004f20| 65 6d 2e 64 6c 6c 3d 2a | 6c 69 73 74 68 65 61 64 |em.dll=*|listhead|
|00004f30| 5c 64 6c 6c 5f 6e 65 78 | 74 00 20 20 20 80 0c 20 |\dll_nex|t. .. |
|00004f40| 28 2a 74 6d 70 69 74 65 | 6d 5c 64 6c 6c 5f 6e 65 |(*tmpite|m\dll_ne|
|00004f50| 78 74 3c 3e 30 29 26 28 | 2a 74 6d 70 69 74 65 6d |xt<>0)&(|*tmpitem|
|00004f60| 5c 64 6c 6c 5f 70 72 65 | 76 3c 3e 30 29 00 20 20 |\dll_pre|v<>0). |
|00004f70| 20 20 20 20 2a 6e 78 74 | 69 74 65 6d 2e 64 6c 6c | *nxt|item.dll|
|00004f80| 3d 2a 74 6d 70 69 74 65 | 6d 5c 64 6c 6c 5f 6e 65 |=*tmpite|m\dll_ne|
|00004f90| 78 74 00 20 20 20 20 20 | 20 2a 73 72 74 69 74 65 |xt. | *srtite|
|00004fa0| 6d 2e 64 6c 6c 3d 2a 74 | 6d 70 69 74 65 6d 5c 64 |m.dll=*t|mpitem\d|
|00004fb0| 6c 6c 5f 70 72 65 76 00 | 20 20 20 20 20 20 52 45 |ll_prev.| RE|
|00004fc0| 4d 4f 56 45 5f 49 54 45 | 4d 7b 2a 74 6d 70 69 74 |MOVE_ITE|M{*tmpit|
|00004fd0| 65 6d 7d 00 20 20 20 20 | 20 20 6e 6f 74 64 6f 6e |em}. | notdon|
|00004fe0| 65 2e 62 3d 23 44 4c 4c | 5f 54 72 75 65 00 20 20 |e.b=#DLL|_True. |
|00004ff0| 20 20 20 20 80 0c 20 28 | 2a 73 72 74 69 74 65 6d | .. (|*srtitem|
|00005000| 3c 3e 2a 6c 69 73 74 68 | 65 61 64 29 20 26 20 6e |<>*listh|ead) & n|
|00005010| 6f 74 64 6f 6e 65 00 20 | 20 20 20 20 20 20 20 20 |otdone. | |
|00005020| 80 0b 20 43 4f 4d 50 41 | 52 45 5f 53 54 52 49 4e |.. COMPA|RE_STRIN|
|00005030| 47 53 7b 44 4c 4c 5f 4c | 45 45 4b 7b 2a 74 6d 70 |GS{DLL_L|EEK{*tmp|
|00005040| 69 74 65 6d 2b 65 6e 74 | 72 79 70 61 74 68 7d 2c |item+ent|rypath},|
|00005050| 44 4c 4c 5f 4c 45 45 4b | 7b 2a 73 72 74 69 74 65 |DLL_LEEK|{*srtite|
|00005060| 6d 2b 65 6e 74 72 79 70 | 61 74 68 7d 7d 20 3e 20 |m+entryp|ath}} > |
|00005070| 30 00 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 73 |0. | *s|
|00005080| 72 74 69 74 65 6d 3d 2a | 73 72 74 69 74 65 6d 5c |rtitem=*|srtitem\|
|00005090| 64 6c 6c 5f 70 72 65 76 | 00 20 20 20 20 20 20 20 |dll_prev|. |
|000050a0| 20 20 80 22 00 20 20 20 | 20 20 20 20 20 20 20 20 | .". | |
|000050b0| 20 6e 6f 74 64 6f 6e 65 | 3d 23 44 4c 4c 5f 46 61 | notdone|=#DLL_Fa|
|000050c0| 6c 73 65 00 20 20 20 20 | 20 20 20 20 20 80 c0 00 |lse. | ...|
|000050d0| 20 20 20 20 20 20 80 c1 | 00 20 20 20 20 20 20 49 | ..|. I|
|000050e0| 4e 53 45 52 54 5f 49 54 | 45 4d 7b 2a 73 72 74 69 |NSERT_IT|EM{*srti|
|000050f0| 74 65 6d 2c 2a 74 6d 70 | 69 74 65 6d 7d 20 20 20 |tem,*tmp|item} |
|00005100| 20 20 3b 69 6e 73 65 72 | 74 20 69 74 65 6d 20 2a | ;inser|t item *|
|00005110| 74 6d 70 6c 69 73 74 20 | 74 6f 20 2a 63 75 72 6c |tmplist |to *curl|
|00005120| 69 73 74 5c 64 6c 6c 5f | 6e 65 78 74 20 70 6f 73 |ist\dll_|next pos|
|00005130| 69 74 69 6f 6e 00 20 20 | 20 20 20 20 2a 74 6d 70 |ition. | *tmp|
|00005140| 69 74 65 6d 3d 2a 6e 78 | 74 69 74 65 6d 00 20 20 |item=*nx|titem. |
|00005150| 20 80 c1 00 20 20 20 52 | 45 53 45 54 5f 4c 49 53 | ... R|ESET_LIS|
|00005160| 54 7b 2a 6c 69 73 74 68 | 65 61 64 7d 00 80 02 20 |T{*listh|ead}... |
|00005170| 80 08 00 00 2e 45 4e 44 | 5f 4f 46 5f 44 4c 4c 3a |.....END|_OF_DLL:|
|00005180| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+